select table schema 數據庫名稱,table name 表名 from information schema.columns where column name comparison approval status 要查詢的列 例: select table schema ,table name from information schema.columns where col ...
2019-03-07 10:43 1 2430 推薦指數:
視圖syscomments中,注意字段id,text. 如果是存儲過程,text字段存儲的就是創建存儲的腳本。視圖sysobjects中,注意字段name,id,xtype. --查看所有函數(FN)中那些使用了存儲過程spWms_StorerInvSELECT DISTINCT ...
FIND_IN_SET(c.id, d.community_ids) ...
SELECT * from information_schema.columns where TABLE_SCHEMA='數據庫名' and COLUMN_NAME='字段名' ...
根據某個字段查找該字段在哪里表中存在 ...
SELECT TABLE_SCHEMA,TABLE_NAME FROM information_schema.`COLUMNS` WHERE COLUMN_NAME = 'xxx' ; xxx替換成需要查找的表名即可 information_schema 記錄了數據庫的各種信息,庫的結構、表 ...