TRUNCATE table IF EXISTS


/ Published in: MySQL
Save to your folder(s)

Truncate or Delete a table only if it exists can not be done with a single line query.
We can achieve it with dynamic querying with a stored procedure.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.