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 ?
CREATE TABLE `whatever` IF NOT EXISTS ELSE TRUNCATE `whatever`
Use TRUNCATE to empty the table and reset cardinality instead of deleting the table and recreating it.