search

Home  >  Q&A  >  body text

Error location, SQL statement

:(

1146:Table 'ybi1.ot_code' doesn't exist [ SQL语句 ] : SHOW COLUMNS FROM `ot_code`

错误位置

FILE: C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 350

TRACE

#0 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\Db\Driver.class.php(350): E('1146:Table 'ybi...')

#1 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\Db\Driver.class.php(180): Think\Db\Driver->error()

#2 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\Db\Driver\Mysql.class.php(56): Think\Db\Driver->query('SHOW COLUMNS FR...')

#3 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\Model.class.php(134): Think\Db\Driver\Mysql->getFields('ot_code')

#4 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\Model.class.php(122): Think\Model->flush()

#5 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\Model.class.php(1454): Think\Model->_checkTableInfo()

#6 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\Model.class.php(97): Think\Model->db(0, '', true)

#7 C:\phpStudy\WWW\ybi\ThinkPHP\Common\functions.php(621): Think\Model->__construct('code', '', '')

#8 C:\phpStudy\WWW\ybi\User\Home\Controller\IndexController.class.php(1045): M('code')

#9 [internal function]: Home\Controller\IndexController->tgbzcl()

#10 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\IndexController))

#11 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Home\Controller\IndexController), 'tgbzcl')

#12 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()

#13 C:\phpStudy\WWW\ybi\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()

#14 C:\phpStudy\WWW\ybi\ThinkPHP\ThinkPHP.php(97): Think\Think::start()

#15 C:\phpStudy\WWW\ybi\index.php(47): require('C:\\phpStudy\\WWW...')

#16 {main}

ThinkPHP3.2.3 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]


商海科技吴生商海科技吴生2515 days ago1763

reply all(4)I'll reply

  • 菜鸟互啄

    菜鸟互啄2018-02-27 18:25:15

    Please pay attention to the key point " Table 'ybi1.ot_code' doesn't exist "
    Baidu Translation can help you solve the problem.

    reply
    0
  • PHP中文网

    PHP中文网2018-02-21 12:02:47

    Isn’t the prompt very accurate? The database table does not exist

    reply
    1
  • 菜鸟互啄

    Can't cancel like by double-clicking? . . .

    菜鸟互啄 · 2018-02-27 18:25:58
  • 商海科技吴生

    商海科技吴生2018-02-16 20:37:43

    Template does not exist: ./User/Home/View/default/ Public/404 .html


    reply
    0
  • Cancelreply