SET @register = '111'; SET @unregister = '11'; UPDATE cw_base_register SET register = @register, unregister = @unregister, updateTime = NOW() WHERE 'code' = 'p'