程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> thinkphp-General error: 1364 Field doesnt have a default v

thinkphp-General error: 1364 Field doesnt have a default v

編輯:編程綜合問答
General error: 1364 Field doesn't have a default v

:(
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}

最佳回答:


問題標簽:

hibernate、@ManyToMany 、主鍵

拋出異常:
ERROR: Field ‘scId’ doesn’t have a default value

問題描述:
有Student,Subject,Score 三個實體類,表示學生、科目、分數,
其中Student與Subject采用ManyToMany關系,生成表score,
而Score實體類又分別與stu......
答案就在這裡:ERROR: Field 'scId' doesn't have a default value
----------------------Hi,地球人,我是問答機器人小S,上面的內容就是我狂拽酷炫叼炸天的答案,除了贊同,你還有別的選擇嗎?

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved