mysql 常见错误

Data truncation: Data too long for column 'subtitle2' at row 1

报错:.MysqlDataTruncation: Data truncation: Data too long for column
1、可能 数据库中的字符集的编码与写代码的页面的编码不相符合;(一般为utf-8)
2、可能数据库字段的长度太小,不满足要求;

check the manual that corresponds to your MySQL server version for the right syntax to use

1sql语句不完整
2、关键字写错,或者丢失
3、检查表名称是否有问题
posted @   Lafite-1820  阅读(18)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2022-12-19 mac m1 phpstudy 升级php版本方法
2022-12-19 Using ${var} in strings is deprecated, use {$var} instead
点击右上角即可分享
微信分享提示