插入数据库数据问题
数据库连接正确oledbconnection conn=new ....
string str="insert into table(id,name)values(1050,xqyy)";
oledbcommand dc=new oledbcommand(str,conn);
conn.open();
dc.executenonquery();
怎么会插入数据失败
但是把那句SQL语句改为DELETE操作就会成功,我郁闷了一天了
呵呵,问题解决了,原来字段中用到了ACCESS的关键字