wang4978

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
问题说明:一系统数据库有一百张数据表,其中有5张表中含有相同的字段“ADSL”,且数据相同,如何通过“ADSL”找出事哪5张表?(备注:无数据结构文档说明


MSSQL:
select b.name  from syscolumns a,sysobjects b where 
a.id
=b.id and a.name='字段名' 

ORACLE:
select d.table_name from  all_tab_columns d where d.COLUMN_NAME='字段名' 
posted on 2009-08-27 18:03  wang4978  阅读(120)  评论(0)    收藏  举报