1. 程式人生 > >獲取mysql中指定庫的所有表名

獲取mysql中指定庫的所有表名

select table_name from information_schema.TABLES where TABLE_SCHEMA='db_name'

information_schema這個是資料系統用來儲存資料表的總表