关键字“主”附近的语法错误

时间:2022-06-29 22:54:16

I have this error message but i cannot find any wrongdoing, help?

我有这个错误信息但我找不到任何错误,帮助?

const string sql = @"SELECT PrimarySchool,TopHonour,Cca,TopStudent,TopAggregate,TopImage FROM Primary";

1 个解决方案

#1


9  

primary is a reserved keyword in TSQL. Make it SELECT ...(snipped)... FROM [Primary]" to escape it and indicate you mean the object named Primary.

primary是TSQL中的保留关键字。让它选择(切断)…“从[Primary]”转义它,表示您指的是名为Primary的对象。

#1


9  

primary is a reserved keyword in TSQL. Make it SELECT ...(snipped)... FROM [Primary]" to escape it and indicate you mean the object named Primary.

primary是TSQL中的保留关键字。让它选择(切断)…“从[Primary]”转义它,表示您指的是名为Primary的对象。