Generate table DDL via query on MySQL and SQL Server

前端 未结 3 1172
逝去的感伤
逝去的感伤 2021-02-11 16:12

Is there an easy way to extract table DDL information, via a query, using either Ms or My SQL server? (preferably both?)

For example, using MySQL Administrator / Navica

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-11 16:49

    it's mysql-specific, but SHOW CREATE TABLE gives you the DDL for a table.

提交回复
热议问题