Suppose you have three tables named test1,test2 and test3 and you want to drop all these three, you can do it in a single DROP statement
DROP table test1,test2,test3
I never knew this! Thanks for sharing this.
I have seen quirky updates before, but not quirky deletes. This is great, and very useful!
Thank-you for this wonderful find!
Self experiment is a great source of knowledge! thanks
Everyone, Thanks for the feedback
Tried with procedures & databases and works well :)
DROP PROCEDURE Procedure1, Procedure2, Procedure3 GO
DROP DATABASE DB1, DB2, DB3 GO
I think, it works pretty much with anything that you can drop using DROP statement.
Thanks Madhi and Datta.
But we cant use truncate like this.
TRUNCATE table1, table2, table3.
Pothiraj, yes truncate can not be used that way
Good to know. Thanks for sharing
very simple but powerful tip
Thank you for good TIP thanks for sharing.