2013-09-28 43 views
-2

伙计。我有这个mysql代码的问题,你能解决它吗?Mysql导入表问题

CREATE TABLE `websites` (
    `id` varchar(200), 
    `totalrate` int(11) default '0', 
    `nrrates` int(9) default '1', 
    `Web-site_name` varchar(200) not null, 
    `Author` varchar(200) not null, 
    `URL` varchar(200) not null 
) ENGINE=InnoDB DEFAULT CHARSET=utf8; 

INSERT INTO `websites` (`id`, `totalrate`, `nrrates`, `Web-site_name`, `Author`, `URL`) VALUES 
('id_0', '0', '1', 'Avengers', 'Zachar Kapustin', '/websites/Av/index.html'), 
('id_1', '0', '1', 'Matvey Productions', 'Matvey Shmakov', '/websites/matvey/website.html'), 
('id_2', '0', '1', '101Patryks', 'Patryk Sobczak', '/websites/PatrykS/Gamelay.htm'), 
('id_3', '0', '1', 'Side-Splitting Studios', 'Jakub Priban, Lena Szegda', '/websites/Jakub/home.htm'), 
('id_4', '0', '1', 'JIGSAW TheMovie', 'Jolana Samii', '/websites/Jolana/jigsawthemovie.htm'), 
('id_5', '0', '1', 'Spurl company ', 'Jan Zverinsky', '/websites/janZ/homepage.htm'), 
('id_6', '0', '1', 'Sabing Destiny', 'Amy L.', '/websites/AmyL/SavingDestiny.htm'), 
+4

好 - 让我们玩 '猜题' ...... – 2013-09-28 18:37:12

+0

什么你收到错误信息? –

回答

1

用分号替换逗号结尾,;