我已经导出了一个Mysql数据库,并且导致语法问题导入到更新的版本

时间:2016-01-14 09:37:01

标签: mysql sql-server database

我正在尝试将Mysql数据库导入更新域中的新实例。我得到以下语法错误,我无法解决什么是错的,我尝试的每一个都不工作。

你可以帮忙吗?

SQL查询:

--
-- Database: 'pringlerfe'
-- -- --------------------------------------------------------
--
-- Table structure for table `adverts`
--
CREATE TABLE  `adverts` (

 `advers_id` INT( 11 ) NOT NULL ,
 `advers_name` VARCHAR( 50 ) DEFAULT NULL ,
 `advers_sqimg` VARCHAR( 50 ) DEFAULT NULL ,
 `advers_squrl` VARCHAR( 100 ) DEFAULT NULL ,
 `advers_towerimg` VARCHAR( 50 ) DEFAULT NULL ,
 `advers_url` VARCHAR( 100 ) DEFAULT NULL ,
 `advers_des` VARCHAR( 100 ) DEFAULT NULL ,
 `advers_display` VARCHAR( 50 ) DEFAULT NULL
) ENGINE = MYISAM DEFAULT CHARSET = latin1;

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 '

--
-- Table struc' at line 3 `

1 个答案:

答案 0 :(得分:0)

CREATE TABLE  adverts (
 advers_id int NOT NULL,
 advers_name varchar( 50 ) DEFAULT NULL,
 advers_sqimg VARCHAR( 50 ) DEFAULT NULL,
 advers_squrl VARCHAR( 100 ) DEFAULT NULL,
 advers_towerimg VARCHAR( 50 ) DEFAULT NULL,
 advers_url VARCHAR( 100 ) DEFAULT NULL,
 advers_des VARCHAR( 100 ) DEFAULT NULL,
 advers_display VARCHAR( 50 ) DEFAULT NULL
 );