初學,UPDATE tb_BookOnSell SET [圖書名稱] = '" + textBox1.Text + "',[出版社] = '" + textBox2.Text + "',[圖書作者] = '" + textBox3.Text + "',[圖書成色] = '" + textBox4.Text + "',[出售者] = '" + textBox5.Text + "',[圖書簡介] = '" + textBox6.Text + "',[圖書價格] = '" + textBox7.Text + "',[圖書類別]='" + textBox8.Text + "'WHERE [圖書編號] ='" + bianhao+"'";問題在哪呢,關鍵字也沒有沖突,總是提示update語句的語法錯誤。
謝謝大家,我的問題已經解決了
UPDATE tb_BookOnSell SET tb_BookOnSell.圖書名稱 = '" + textBox1.Text + "', tb_BookOnSell.出版社 = '" + textBox2.Text + " ', tb_BookOnSell.圖書作者 = '" + textBox3.Text + "', tb_BookOnSell.圖書成色 = '" + textBox4.Text + "', tb_BookOnSell.出售者 = '" + textBox5.Text + "', tb_BookOnSell.圖書簡介 = '" + textBox6.Text + "', tb_BookOnSell.圖書價格 = '" + textBox7.Text + "', tb_BookOnSell.圖書類別 = '" + textBox8.Text + "'WHERE [圖書編號]='" + bianhao + "'";