|
hi i want to delete total database from MYSQL server(remove the entire table) Generally Ex: delete * from table_name; it is deleted Particular table. But I want to delete Number of table's at a time? it is Possible or Not?
(comments are locked)
|
|
I don't believe so. Any process that attempts to simulate this is actually running the individual DELETE statements behind the scenes. This would be true of SQL Server, too, by the way.
(comments are locked)
|
|
SQL doesn't really work like that. You basically work at an entity level... column/table/dB. Regardless of that you wouldn't see much difference execution wise between one multi-table kind of command and multiple single commands. EDIT For removing a database you can try this:
(comments are locked)
|


You want to use one statement to delete data from multiple tables? Or you want to remove the entire table?
Oh, and why have you mentioned MySQL in the query, but tagged your question with multiple versions of SQL Server rather than MySQL?
re-tagged as mysql.
Please add more to your question so that we can answer your problem