根據表名查庫,根據字段名查表

根據表名查庫

SELECT table_schema FROM information_schema.TABLES WHERE table_name = '表名';

 

根據字段名查表

select table_schema,table_name from information_schema.columns where column_name = '字段名'

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