1.create view時 在select語句中有兩個約束:
1).不能使用union操作。
2).不能使用order by子句,但可以使用group by里的order by。
2 在操作view時:
1).多表視圖不能使用delete
2).除非底層表的非空列都在view里出現,否則不能使用insert(用distinct不能用)
3).update只能更新同一個虛表的列
1.create view時 在select語句中有兩個約束:
1).不能使用union操作。
2).不能使用order by子句,但可以使用group by里的order by。
2 在操作view時:
1).多表視圖不能使用delete
2).除非底層表的非空列都在view里出現,否則不能使用insert(用distinct不能用)
3).update只能更新同一個虛表的列