c# insert 语法错误
stringconstr="provider=Microsoft.Jet.Oledb.4.0;DataSource=F:\\数据库3.mdb";OleDbConnecti...
string constr = "provider=Microsoft.Jet.Oledb.4.0;Data Source=F:\\数据库3.mdb";
OleDbConnection conn = new OleDbConnection(constr);
conn.Open();
string jia = "INSERT INTO [表1](ID,字段1,字段2)values('20','6','lala')";
OleDbCommand comm = new OleDbCommand(jia, conn);
comm.ExecuteNonQuery();
conn.Close(); 说我insert into 语法错误,但是我不知道错在哪里,求大神指导 展开
OleDbConnection conn = new OleDbConnection(constr);
conn.Open();
string jia = "INSERT INTO [表1](ID,字段1,字段2)values('20','6','lala')";
OleDbCommand comm = new OleDbCommand(jia, conn);
comm.ExecuteNonQuery();
conn.Close(); 说我insert into 语法错误,但是我不知道错在哪里,求大神指导 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询