【这个写法哪里不对?】
OdbcCommand updatetz = new OdbcCommand("",MainForm.odbcConnect);
updatetz.CommandText = "update LZLJ_JH set LZLJ_JH_JHSL = '"+this.textBoxJHSL.Text+"',LZLJ_JH_TZSL = '"+this.textBoxTZSL.Text+"' where LZLJ_JH_KHBH = LZLJ_TZ_KHBH and LZLJ_JH_CPBH = LZLJ_TZ_CPBH and LZLJ_JH_XSBH = LZLJ_TZ_XSBH";
//以上为一行
updatetz.CommandType = CommandType.Text;
updatetz.Connection.Close();
updatetz.Connection.Open();
updatetz.ExecuteNonQuery();