Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • i see...does it do same thing as @ypercube mentioned above to use this command TRUNCATE table1, table2, ... <list of all tables>;? do they both do same thing? Commented Nov 2, 2016 at 20:13
  • 1
    @babababa: yes, my answer simply generates and runs that statement dynamically, so you don't have to type all table names and if you add a new table it will automatically be included. Commented Nov 2, 2016 at 20:22
  • nice just tried it and it works, @ypercube one works too...thanks a lot Commented Nov 4, 2016 at 15:08
  • where 's ; ? . Commented Oct 10, 2021 at 15:44