SQL Server建立视图

来源:百度知道 编辑:UC知道 时间:2024/05/15 03:25:40
在使用SQL Server建立视图时 create view C_student as select Student.Sno,Student.Sname,Student.Sage,Student.Sdept from Student where Sdept='数学' with check option; 为什么在执行过程中,系统给出 ';' 附近有语法错误 的提示?

呵呵,错就错在;
option;
这是你的,为什么option后面要;

你试试看:

create view C_student as select Student.Sno,Student.Sname,Student.Sage,Student.Sdept from Student where Sdept='数学' with check option

一模一样的,你下次可要心细点哦!