cmd = new MySql.Data.MySqlClient.MySqlCommand("update dingdan set qrcode = '" & codea & "'", conn)
或者
cmd = new MySql.Data.MySqlClient.MySqlCommand("update dingdan set qrcode = '" & codea & "' where 主键列 = '" & r("主键列") & "'", conn)