This DROP TABLE IF EXISTS works, too bad that RENAME TABLE IF EXISTS doesn’t work.
Can anyone suggest a solution for this query?
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF EXISTS video_top_day TO video_top_day_for_delete' at line 1
query:
RENAME TABLE IF EXISTS video_top_day TO video_top_day_for_delete
I’ve managed to execute a code that always works and generates no errors when the table doesn’t exist:
When you don’t want to replace
[DATABASE NAME]manually you can use the following variable