MySql 弹出“data too long for column 'xxx' at row 1"解决方法
来源:互联网 发布:网络区域推广方法 编辑:程序博客网 时间:2024/06/05 04:28
MySql 弹出“data too long for column 'xxx' at row 1"解决方法 ,这个一般出现在数据库及表单设置的是中文编码方式,会在PHP程序提交中文数据进入数据库时弹出错误。
解决方法:
1)在提交PHP程序语句前,运行“ mysql_query("set names 'UTF8'");”即OK。
- MySql 弹出“data too long for column 'xxx' at row 1"解决方法
- mysql Data too long for column ‘xxx’ at row xxx的解决方法
- mysql Data too long for column ‘xxx’ at row xxx的解决方法
- MYSQL写入中文错误 —— Data too long for column 'xxx' at row 1
- Data truncation: Data too long for column 'XXX' at row 1
- Data truncation: Data too long for column 'xxx' at row 1
- data too long for column 'Auser' at row 1
- data too long for column 'spath' at row 1
- Data too long for column 'sex' at row 1
- Data too long for column 'corp_id' at row 1
- Data too long for column 'filecontent' at row 1
- Data too long for column 'transportation_type' at row 1
- 解决data too long for column 'name' at row 1
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'title' at row 1
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'title' at row 1
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'title' at row 1
- java-mysql异常<Data truncation: Data too long for column 'name ' at row 1>讨论
- mysql 数据库 错误 Data truncation: Data too long for column 'name' at row 1
- POJ 1384 PigBank
- 我的vim配置
- 制作DEB包的方法
- 将SQLserver 里面的数据生成insert语句,
- 网站用户体验76条原则
- MySql 弹出“data too long for column 'xxx' at row 1"解决方法
- STM32中assert_param的使用(转)
- C++:CString、TCHAR、WCHAR 字符串等转BSTR的几种方法。
- java的四种访问控制级别对于成员的可见性的整理
- JSP自定义标签
- Chat_5
- 百度云bae安装discuz论坛教程
- 【C#利用后台动态加载数据】Winform“防界面卡死”
- SSIS 组件使用 Foreach Loop Container and Execute SQL Task