mysql 內置 原

 查看所有表的記錄數:

select table_name,table_rows from information_schema.tables where TABLE_SCHEMA = 'zkbc_gz' order by table_rows desc;

查看錶的表結構以及註釋:

 select COLUMN_NAME,IS_NULLABLE,COLUMN_TYPE,COLUMN_COMMENT from information_schema.columns where table_schema = 'zkbc_gz' #表所在數據庫
 and table_name = 'bank_card' ; #你要查的表

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章