直接上sql
select column_name as 字段, column_type as 數據類型, data_type as 字段類型, character_maximum_length as 長度, is_nullable as 是否為空, column_default as 默認值, column_comment as 備注 from information_schema.columns where table_schema = '數據庫名稱' and table_name = '表名稱'
將“數據可名稱”和“表名稱”改為自己要導出的數據庫名稱和表名稱即可,結果如下:
右鍵選擇“導出表格的行”,跳出下面的會話框
搞定!