SQL语句update在拼接字符串时使用函数CONCAT()而不要用“+”
错误:update user_info set user_name = user_name + '呵呵呵' where user_name = '哈哈哈';
报错:Truncated incorrect DOUBLE value
正确:update user_info set user_name = concat(user_name,'呵呵呵') where user_name = '哈哈哈';
SQL语句update在拼接字符串时使用函数CONCAT()而不要用“+”
错误:update user_info set user_name = user_name + '呵呵呵' where user_name = '哈哈哈';
报错:Truncated incorrect DOUBLE value
正确:update user_info set user_name = concat(user_name,'呵呵呵') where user_name = '哈哈哈';