我不得不更新表我嘗試了兩種查詢,但它顯示了語法錯誤誰能幫助我請我知道這是基本的,但我是一個初學者更正語法
String query = "Update masterusertable set username='" + txtName.Text + "',and set password='" + txtpassword.Text + "',and set phoneno='" + txtphoneno.Text + "',and set adress='" + rtxtAdress.Text + "' where userid ='" + txtuserid.Text + "'";
String query = "Update masterusertable set username='" + txtName.Text + "', password='" + txtpassword.Text + "', phoneno='" + txtphoneno.Text + "', adress='" + rtxtAdress.Text + "' where userid ='" + txtuserid.Text + "'";
任何其它的想法,我有許多大表更新使用任何其他想法是更好的。
您正在使用什麼數據庫管理系統? – 2011-02-03 12:46:32
你能發佈錯誤信息嗎? – Tony 2011-02-03 12:46:52