我正在尝试在我的游戏中添加一个插件,我需要将此查询添加到 mysql,查询如下:
CREATE TABLE `streets` (
`id` int(11) NOT NULL auto_increment,
`min_level` int(11) NOT NULL,
`text` longtext NOT NULL,
`query` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MYISAM ;
INSERT INTO `settings` (`conf_id`, `conf_name`, `conf_value`) VALUES ('NULL', 'steps_daily', '100')
ALTER TABLE `users` ADD `steps` INT( 11 ) NOT NULL ;
当我尝试将查询输入到 sql 中时,出现此错误:
Error
SQL query:
INSERT INTO `settings` ( `conf_id` , `conf_name` , `conf_value` )
VALUES (
'NULL', 'steps_daily', '100'
)
ALTER TABLE `users` ADD `steps` INT( 11 ) NOT NULL ;
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `users` ADD `steps` INT( 11 ) NOT NULL' at line 3