譬如数据库中student_his, student_score两个表都有name这个字段。我现在已经知道student_his表有name 这个字段,我如果找到该数据库中其他所有和name关联的表(也就是也有name字段的表)。偶是数据库菜鸟,甭笑

解决方案 »

  1.   

    先前 我回你的就是这个意思select TABLE_NAME from dba_tab_cols where column_name like 'DENT%'
      

  2.   

    select TABLE_NAME from dba_tab_cols where column_name like 'NAME%'
      

  3.   

    select * from user_tab_columns where column_name = UPPER('NAME')
      

  4.   

    1.查询当前用户下的有name字段的表
    select * from user_tab_columns where column_name = UPPER('NAME')
    2.查询当前用户能够查询到name字段的表,包括另外用户赋权
    select * from all_tab_columns where column_name = UPPER('NAME')
    1.查询当前数据下具有name名字的表
    select * from dba_tab_columns where column_name = UPPER('NAME')