How to generate a create table script for an existing table in phpmyadmin?

前端 未结 11 2170
旧时难觅i
旧时难觅i 2020-12-02 03:59

How can I generate a create table script for an existing table in phpmyadmin?

11条回答
  •  情话喂你
    2020-12-02 04:15

    Query information_schema.columns directly:

    select * from information_schema.columns 
    where table_name = 'your_table' and table_schema = 'your_database'
    

提交回复
热议问题