欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

thinkphp-General error: 1364 Field doesn't have a default v

程序员文章站 2022-05-11 13:38:25
...
thinkphp框架php函数

:(
SQLSTATE[HY000]: General error: 1364 Field 'tiezi' doesn't have a default value
错误位置
FILE: E:\Webpage\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 217
TRACE

#0 E:\Webpage\ThinkPHP\Library\Think\Db\Driver.class.php(217): PDOStatement->execute()
#1 E:\Webpage\ThinkPHP\Library\Think\Db\Driver.class.php(813): Think\Db\Driver->execute('INSERT INTO `tb...', false)
#2 E:\Webpage\ThinkPHP\Library\Think\Model.class.php(320): Think\Db\Driver->insert(Array, Array, false)
#3 E:\Webpage\Application\Home\Controller\IndexController.class.php(79): Think\Model->add(Array)
#4 [internal function]: Home\Controller\IndexController->posts()
#5 E:\Webpage\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
#6 E:\Webpage\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#7 E:\Webpage\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#8 E:\Webpage\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#9 E:\Webpage\index.php(13): require('E:\Webpage\Thin...')
#10 {main}