samedi 30 juillet 2016

Mysql - INSERT INTO table IF table exists otherwise CREATE TABLE

Do mysql support something like this?

INSERT INTO `table` VALUES (NULL,"1234") IF TABLE EXISTS `table` ELSE CREATE TABLE `table` (id INT(10), word VARCHAR(500));

Aucun commentaire:

Enregistrer un commentaire