mysql支持这样的东西吗?
INSERT INTO `table` VALUES (NULL,"1234") IF TABLE EXISTS `table` ELSE CREATE TABLE `table` (id INT(10), word VARCHAR(500));
我将创建2条语句。试试这个:
CREATE TABLE IF NOT EXISTS `table` ( id INT(10), word VARCHAR(500) ); INSERT INTO `table` VALUES (NULL,"1234");