错误
SQL查询:
IF EXISTS (SELECT * FROM 06/02/2015 WHERE `ID` = '1')
INSERT INTO 06/02/2015 SET `text` = '[22:37:44] test'
ELSE
CREATE TABLE `06/02/2015` (`ID` int(11) NOT NULL auto_increment, `text` varchar(255) NOT NULL default '', PRIMARY KEY (`ID`))
INSERT INTO `06/02/2015` SET `text` = '[22:37:44] test'
MySQL说:
#1064 - Erreur de syntaxe près de 'IF EXISTS (SELECT * FROM 06/02/2015 WHERE `ID` = '1')
INSERT INTO 06/02/2015 S' Ã la ligne 1
如何解决? 我做得对吗?
答案 0 :(得分:0)
06/02/2015
此代码段无效,因为这不是有效的表名。