MYSQL : insert into 的问题
insertinto'musiclist'('musicId','musicName','singerName','CDTitle','size','duration',...
insert into 'musiclist' ('musicId','musicName','singerName','CDTitle','size','duration','format','area','musicTag','imageUrl','Url','date','clicks','other','style' )
values('20','光辉岁月','黄家驹','1111','5','00:00:00','1','中国台湾','1','1','E:/AppServ/www/lyko2/music/老男孩.mp3','2010-11-29','1','1','流行');
为什么报错啊:[Err] 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 ''musiclist' ('musicId','musicName','singerName','CDTitle','size','duration','for' at line 1 展开
values('20','光辉岁月','黄家驹','1111','5','00:00:00','1','中国台湾','1','1','E:/AppServ/www/lyko2/music/老男孩.mp3','2010-11-29','1','1','流行');
为什么报错啊:[Err] 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 ''musiclist' ('musicId','musicName','singerName','CDTitle','size','duration','for' at line 1 展开
2个回答
展开全部
表名 列名这里不用加引号insert into 'musiclist'
insert into musiclist(musicid, musicname, singername)
values('20', '1111', 'zhang san')
insert into musiclist
(musicId','musicName','singerName','CDTitle','size','duration','format','area','musicTag','imageUrl','Url','date','clicks','other','style' )
values('20','光辉岁月','黄家驹','1111','5','00:00:00','1','中国台湾','1','1','E:/AppServ/www/lyko2/music/老男孩.mp3','2010-11-29','1','1','流行');
insert into musiclist(musicid, musicname, singername)
values('20', '1111', 'zhang san')
insert into musiclist
(musicId','musicName','singerName','CDTitle','size','duration','format','area','musicTag','imageUrl','Url','date','clicks','other','style' )
values('20','光辉岁月','黄家驹','1111','5','00:00:00','1','中国台湾','1','1','E:/AppServ/www/lyko2/music/老男孩.mp3','2010-11-29','1','1','流行');
展开全部
我也是遇见过同样错误,就是在insert into 'musiclist' ('musicId','musicName','singerName','CDTitle','size','duration','format','area','musicTag','imageUrl','Url','date','clicks','other','style' )的单引号得需要用键盘中左上角的~键输入,后面的才能用“键中的单引号输入
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询