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 记录了数据库的各种信息,库的结构、表 ...