dearweiwin
舰长是个好孩子
CDbCommand failed to execute the SQL statement: SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '' for column 'update_time' at row 1. The SQL statement executed was: INSERT INTO `yii_computer_user` (`username`, `password`, `realname`, `tel`, `sex`, `class_id`, `status_id`, `create_time`, `update_time`, `create_user_id`, `update_user_id`) VALUES (:yp0, :yp1, :yp2, :yp3, :yp4, :yp5, :yp6, :yp7, :yp8, :yp9, :yp10). Bound with :yp0='weizhi', :yp1='d41d8cd98f00b204e9800998ecf8427e', :yp2='', :yp3='', :yp4='1', :yp5='1', :yp6=1, :yp7='2011-04-27 22:01:33', :yp8='', :yp9='', :yp10='' [/code]我也遇到了这样的问题,唉~ 实在是找不到原因啊,求救 求救~ 我安装的是BoyLee给的那个表,我看他视频都没有问题,我这里怎么就这么大的问题呢? 我按照操作提示 打开了Application Log 下面给的提示是:[code]Executing SQL: INSERT INTO `yii_computer_user` (`username`, `password`, `realname`, `tel`, `sex`, `class_id`, `status_id`, `create_time`, `update_time`, `create_user_id`, `update_user_id`) VALUES (:yp0, :yp1, :yp2, :yp3, :yp4, :yp5, :yp6, :yp7, :yp8, :yp9, :yp10). Bound with :yp0='weizhi', :yp1='d41d8cd98f00b204e9800998ecf8427e', :yp2='', :yp3='', :yp4='1', :yp5='1', :yp6=1, :yp7='2011-04-27 22:01:33', :yp8='', :yp9='', :yp10='' in D:\DevEnv\KDNLTP\webapp\yii_go_part2\protected\controllers\UserController.php (72) in D:\DevEnv\KDNLTP\webapp\yii_go_part2\index.php (13)
不知道怎么搞,数据库也来回导了两次了,模型也重建了~ 还是不行 求助 求助~
这个字段约束在哪里呢?我直接用gii 生成一个model,再生成一个Crud 然后就执行create 就出现了这样的问题
我也遇到了这样的问题,真是很奇怪啊~ 菜菜们伤不起~