且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C#SQL INSERT INTO语法错误?

更新时间:2023-02-04 08:39:35

我怀疑User是Access中的保留字-因此您不能按原样使用它,需要将它括起来方括号

I suspect that User is a reserved word in Access - so you can''t use it as is, you need to surround it with square brackets

string insertCMD = "INSERT INTO LoginTable ([User],Pass) VALUES (@User,@Pass)";



可能会做到



will probably do it