因为在数据库中有太多的表,我想查找某个字段是在哪个表,该怎么办? 

解决方案 »

  1.   

    select owner,table_name from all_tab_cols
    where column_name=upper('xxxxx');
      

  2.   

    select TABLE_NAME from user_tab_cols where COLUMN_NAME='ID';
      

  3.   

    select * from dba_tab_columns where owner='TEST'
      

  4.   

    select table_name from dba_tab_columns where column_name='XH';--记得字段名字要大写
      

  5.   

    select table_name from dba_tab_columns where column_name=upper('XH');