Field 'buildTime' doesn't have a default value是怎么回事

来源:学生作业帮助网 编辑:作业帮 时间:2024/12/01 13:28:39
Field 'buildTime' doesn't have a default value是怎么回事
xSOPWNx&=61v1>-]{n2i7QAĐƀ?n}_k`&jr}9_ C%$銏@VA C&0#uZ\6 ֫-4ȇ ,j읍{khғ5=1[fp*:GnNU;Kvc(^1.Xbn֏&}bE6FZ8;OZeT{_u*_u9 tfN4,pBYPt *HX2=lLXԂ>c*KሠДf4!- ADTegI~UeY-jɲAnk'XU"fxD&xLb 3 B0q*!j EBD##Sؔ'd1Y{zL0[|~ADx osc"y,tǣ`@ Jț{{m|bt:٨t devD+5b[iuE@_/OX;g5-XK-{ⲽJg{Ϟ[ac,vOv[1]xȮ6BGroRc&Xr_a"

Field 'buildTime' doesn't have a default value是怎么回事
Field 'buildTime' doesn't have a default value是怎么回事

Field 'buildTime' doesn't have a default value是怎么回事
Field 'id' doesn't have a default value问题解决方法
MySQL 5中,出现错误提示:
Field 'id' doesn't have a default value

解决方法一:

打开my.ini,查找
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

修改为

sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

然后重启MYSQL

解决方法二:
MySQL 5 uses a strict mode which needs to be disabled.
In Windows, Goto Start-->Programs-->MySQL->MySQL Instance Config Wizard. Follow through the Reconfigure Instance option-->Detailed Configuration-->Continue Next a few screens. At the bottom under Enable TCP/IP option there is 'Enable Strict Mode'. Deslect this option (no tick). Save changes and MySQL will restart

楼上的太详细,不说了!

你的数据库里面 buildTime 字段属性 有没有设置了自动增长?
不知道是不是类似的问题。我的改成自动增长,错误就没了。