Cause: java.sql.SQLException: Incorrect string value: ‘xF0x9FxA6x8C2xE5...‘ for column ‘send

Cause: java.sql.SQLException: Incorrect string value: ‘xF0x9FxA6x8C2xE5...‘ for column ‘send,第1张

Cause: java.sql.SQLException: Incorrect string value: ‘xF0x9FxA6x8C2xE5...‘ for column ‘send
### SQL: INSERT INTO hq_send_log  ( id, send_obj, send_time, method_url, ip_address, haier_return_obj, detect_data_ids, send_count, send_status,  create_time )  VALUES  ( ?, ?, ?, ?, ?, ?, ?, ?, ?,  ? )
### Cause: java.sql.SQLException: Incorrect string value: 'xF0x9FxA6x8C2xE5...' for column 'send_obj' at row 1
原因:

insert时,send_obj字段存的数据带表情歷,该字段的字符集排序规则设置是utf8

解决

字符集和排序规则改成:utf8mb4和utf8mb4_general_ci

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5707597.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存