Generate CREATE statements for all MySql Tables

后端 未结 2 534
甜味超标
甜味超标 2021-02-02 13:22

I want All CREATE statements of MySql Tables in 1 query result.

For example, INFORMATION_SCHEMA contains all table names,comments

2条回答
  •  孤独总比滥情好
    2021-02-02 13:46

    mysqldump -h localhost -u root -p --no-data --compact  some_db
    
    
    mysqldump -d --compact --compatible=mysql323 ${dbname}|egrep -v "(^SET|^/\*\!)"
    

    How do I use mysqldump to export only the CREATE TABLE commands

提交回复
热议问题