发布网友 发布时间:2024-10-24 17:29
共1个回答
热心网友 时间:2024-11-04 01:17
string sql = "INSERT INTO GreenHouseManage VALUES('" + textBox1.Text + "'," + label6.Text + "," + label5.Text + "," + label7.Text + ",'0','0','0','0',location)";
把你的字符串值加个单引号,类似:'" + textBox1.Text + "',追问谢啦,好了。