关键字 'Insert' 附近有语法错误

Create schema ST

Create table ST.student(
Sno char(10)primary key,
Sname char(10),
Ssex char(2),
Sage char(2),
Sdept char(20)
)
Insert ST.student values('200215121','李勇','男','20','CS')
Insert ST.student values('200215122','刘晨','女','19','CS')
Insert ST.student values('200215123','王敏','女','18','MA')
Insert ST.student values('200215125','刘晨','女','19','IS')

因为order是SQL的关键字,如果你用它作表名或字段名,在SQL语句中使用时,要用方括号括起来,这样数据库就知道这不是一个关键字而是一个表名或字段名了.改后如下: string sql ="insert into [order] ([username],flag,...
温馨提示:答案为网友推荐,仅供参考
相似回答