完全按照3.2.3快速入门上的代码敲的。报错如下
1146:La table 'thinkphp.think_d_a_t_a' n'existe pas [ SQL语句 ] : SHOW COLUMNS FROM `think_d_a_t_a`
错误位置
FILE: D:\WP\TPHP\ThinkPHP\Library\Think\Db\Driver.class.php LINE: 350
TRACE
#0 D:\WP\TPHP\ThinkPHP\Library\Think\Db\Driver.class.php(350): E('1146:La table '...')
#1 D:\WP\TPHP\ThinkPHP\Library\Think\Db\Driver.class.php(180): Think\Db\Driver->error()
#2 D:\WP\TPHP\ThinkPHP\Library\Think\Db\Driver\Mysql.class.php(56): Think\Db\Driver->query('SHOW COLUMNS FR...')
#3 D:\WP\TPHP\ThinkPHP\Library\Think\Model.class.php(134): Think\Db\Driver\Mysql->getFields('think_d_a_t_a')
#4 D:\WP\TPHP\ThinkPHP\Library\Think\Model.class.php(122): Think\Model->flush()
#5 D:\WP\TPHP\ThinkPHP\Library\Think\Model.class.php(1454): Think\Model->_checkTableInfo()
#6 D:\WP\TPHP\ThinkPHP\Library\Think\Model.class.php(97): Think\Model->db(0, '', true)
#7 D:\WP\TPHP\ThinkPHP\Common\functions.php(621): Think\Model->__construct('DATA', '', '')
#8 D:\WP\TPHP\Application\Home\Controller\IndexController.class.php(26): M('DATA')
#9 [internal function]: Home\Controller\IndexController->index()
#10 D:\WP\TPHP\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(ob
#11 D:\WP\TPHP\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(ob
#12 D:\WP\TPHP\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#13 D:\WP\TPHP\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#14 D:\WP\TPHP\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#15 D:\WP\TPHP\index.php(30): require('D:\\WP\\TPHP\\Thin...')
#16 {main}
我想知道为什么我制定的的数据表会成_d_a_t_a这样。。
求前辈指点。
最佳答案