SQLSTATE[42000]: Syntax error or access violation: 1072 Key column 'id' doesn't exist in table
Sql
DROP TABLE IF EXISTS `test`;
CREATE TABLE `test` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='TEST';
thinkphp5.1.18 $db->execute($sql);
最佳答案
