string Comm = "UPDATE product SET [name]='"+textBox_name.Text +"'AND [price]="+textBox_price.Text +" AND [number]="+textBox_number.Text +"AND [c_id]="+c_id +" WHERE ID="+id;
这个写进去的数据 全是错的 不是-1就是0;
string ole = "insert into [product](name,price,number,c_id) values('" + textBox_name.Text + "'," + textBox_price.Text + "," + textBox_number.Text + "," + id + ")";
这句一直说sql语句错误
求大神指教
这个写进去的数据 全是错的 不是-1就是0;
string ole = "insert into [product](name,price,number,c_id) values('" + textBox_name.Text + "'," + textBox_price.Text + "," + textBox_number.Text + "," + id + ")";
这句一直说sql语句错误
求大神指教