I\'m trying to iterate over all of my tables so I can truncate each one (at the beginning of each of my JBehave tests).
I thought I would be able to:
Try something like this:
SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE();
For columns (same situation with Hibernate) try:
SELECT column_name FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME=YOUR_TABLE_NAME