问题说明:一系统数据库有一百张数据表,其中有5张表中含有相同的字段“ADSL”,且数据相同,如何通过“ADSL”找出事哪5张表?(备注:无数据结构文档说明)
MSSQL:
MSSQL:
select b.name from syscolumns a,sysobjects b where
a.id=b.id and a.name='字段名'
a.id=b.id and a.name='字段名'
ORACLE:
select d.table_name from all_tab_columns d where d.COLUMN_NAME='字段名'