Thinkphp-general error:1364 Field doesn ' t have a default V

Source: Internet
Author: User
Keywords thinkphp Framework PHP functions
thinkphp Framework PHP functions

:(
sqlstate[hy000]: General error:1364 Field ' tiezi ' doesn ' t has a default value
Wrong location
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: Think\db\driver->insert (array, array, false)
#3 E:\Webpage\Application\Home\Controller\IndexController.class.php: 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 (): Think\app::run ()
#8 E:\Webpage\ThinkPHP\ThinkPHP.php ($): Think\think::start ()
#9 E:\Webpage\index.php: Require (' E:\Webpage\Thin ... ')
#10 {main}

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.