环境是WAMPSERVER错误类型如下,应该可以肯定是字符编码的问题:
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'merchant_fee' at row 1
根据网上给出的解决方案:
在mysql.ini中设置[mysql]的默认字符集为gbk
但在wampserver下设置mysql.ini,保存并重启all sevices.无法重启?求解
人生最曼妙的风景,竟是内心的淡定与从容!
Your reason is: the length of the inserted field exceeds the set lengthReference: http://blog.csdn.net/whq19890...
Your reason is: the length of the inserted field exceeds the set length
Reference: http://blog.csdn.net/whq19890...