I love the java series --- [] to quickly build data dictionary

1. Do sql in Navicat, to modify the table name into its own.

select COLUMN_NAME,DATA_TYPE ,COLUMN_COMMENT from (
select COLUMN_NAME,DATA_TYPE,COLUMN_COMMENT,table_name
from information_schema.COLUMNS 
where table_name in (
  'sgw_server_conf',
  'success_submit_area_report',
  'test_message_by_channel',
  'test_message_by_task',
  'test_message_mobiles',
  'test_message_mobiles_group'
)and table_schema ='sms_dev_demo'
and COLUMN_NAME = 'DETAIL'
#and COLUMN_COMMENT = '创建人'
) temp group by COLUMN_NAME,DATA_TYPE,COLUMN_COMMENT

2. Query results are as follows: copied to your Excel spreadsheet

 

 3. Custom Header

 

At this point, a data dictionary on the perfect ending!

Guess you like

Origin www.cnblogs.com/hujunwei/p/12128435.html
Recommended