各位大侠,急救inser(50分)

9

9898

Unregistered / Unconfirmed
GUEST, unregistred user!
使用oledbcommand
oledbcommand="insert to user(username,password) values ('12','13')"
执行后,提示insert into 语法错误

oledbcommand="insert to user(username) values ('13')"
oledbcommand="insert to user(password) values ('13')"
均通过
 
insert into ???
insert to ??? 不明白
 
sorry,是insert into 不是 insert to ,刚才打错了,请各位大侠帮帮小第
 
把表名user换一个看看,可能是user这个名字不能用。
 
请斑竹收回我的分,问题已解决,ado.net中不支持password 作为字段名
 
原来如此,下次小心!其实这是SQL语句中的问题!
 
如果ado.net不支持password作字段名,那么
oledbcommand="insert to user(password) values ('13')"
为什么能通过
 
不会啊,我也是用PASSWORD作字段名的啊,怎么没事呢??你别骗人了.
 
啊,不是我说的,是9898说的
 
to zhjihui
可能你误会了,我是说9898.并没说到你.让你误会不好意思.
 

Similar threads

D
回复
0
查看
1K
DelphiTeacher的专栏
D
D
回复
0
查看
750
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
D
回复
0
查看
884
DelphiTeacher的专栏
D
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
顶部