Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql drop tables

mysql --silent --skip-column-names -e "SHOW TABLES" DB_NAME | xargs -L1 -I% echo 'DROP TABLE `%`;' | mysql -v DB_NAME
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #mysql #drop #tables
ADD COMMENT
Topic
Name
2+1 =