什么问题
String sql = "insert into Point_Cooperation(IfFinish,Information) values ('" + textBox2.Text.Trim() + "','" + textBox3.Text.Trim() + "' ) where CooperationID ='" + textBox1.Text.Trim() + "'";说where附近有错误 --------------------编程问答-------------------- insert不用加where条件
string sql = "insert into Point_Cooperation(IfFinish,Information) values ('" + textBox2.Text.Trim() + "','" + textBox3.Text.Trim() + "' );
如果是更新的话,可以加where条件
string sql = "update Point_Cooperation set IfFinish='" + textBox2.Text.Trim() + "',Information='" + textBox3.Text.Trim() + "' where CooperationID ='" + textBox1.Text.Trim() + "'"; --------------------编程问答-------------------- where附近的) 是全角的吧 --------------------编程问答-------------------- OK 了 谢谢高手 --------------------编程问答-------------------- inset 不用Where
补充:.NET技术 , C#