string shhs = "select Gnum from GOODS where Gname='" + this.textBox18.Text + " '";
string shhss = "select Snum from STOCKING where Gname='" + this.textBox18.Text + " '";
string nui = shhs + shhss;
string nuii = "update GOODS set Gnum='" + nui + "'where Gname='" + this.textBox18.Text + "'";
SqlCommand nuiii = new SqlCommand(nuii, conn);
nuiii.ExecuteNonQuery();
这段代码哪里错了 ?老给我提示说更新那块出了问题
string shhss = "select Snum from STOCKING where Gname='" + this.textBox18.Text + " '";
string nui = shhs + shhss;
string nuii = "update GOODS set Gnum='" + nui + "'where Gname='" + this.textBox18.Text + "'";
SqlCommand nuiii = new SqlCommand(nuii, conn);
nuiii.ExecuteNonQuery();
这段代码哪里错了 ?老给我提示说更新那块出了问题
