MySql - DROP table 'whatever' if exist ELSE create table 'whatever'?
-
29-10-2019 - |
Question
I simply want to drop the table 'whatever' if it exist and then recreate table 'whatever' in a single query if possible.
DROP TABLE IF EXISTS `whatever` ELSE
CREATE TABLE `whatever`
Any idea ?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow