Is it possible to truncate all table in mysql database ? what is query for that .
Which is probably a Good Thing.
Brian Hooper
2010-07-01 12:57:26
+1
A:
You can do this query:
select 'truncate table ' || table_name || ';'
from INFORMATION_SCHEMA.TABLES;
Then save results to a script and run it.
Other possibility might be,
- Run the query
- Copy the results to the clipboard (COPY)
- Paste the results into the MySQL command interpreter (PASTE)
Done.
If you just run the query you will understand what I am trying to say.
Pablo Santa Cruz
2010-07-01 12:27:13
sorry but, I can't understand your statement , save results to a script and run it.
chetan
2010-07-01 12:33:39