阅读背景:

mysql在查找和插入时将整数截断为一个奇怪的数字

来源:互联网 

I'm using Eloquent of Laravel in php to insert and find a record. What happens is that when I insert an integer, here it's -1001094515039, it changes that to -367135071 and stores it in the field. Field type is Bigint with 20 characters length, I have tried storing it in a text type field and a Varchar one, but the same thing happens. Also when I manually change that to -1001094515039 in phpMyAdmin, and I try to find it using Eloquent's find method, it doesn't give me that record!I'm using Eloquent of Laravel in php to insert




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: