Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    6

    Unanswered: same field with differenet tables

    im using EmpName filed in lot of tables in oracle data base.

    how to write a query to find how many tables contains EmpName


    thanks in advance

    gowri

  2. #2
    Join Date
    Jan 2004
    Location
    Croatia, Europe
    Posts
    4,094
    Provided Answers: 4
    Query USER_TAB_COLUMNS (or even ALL_TAB_COLUMNS):
    Code:
    SELECT table_name
    FROM all_tab_columns
    WHERE column_name = 'EMPNAME';
    I hope you didn't really name it 'EmpName' (note combination of capital and small letters); if you did, you'd have to enclose column name into double quotes.

  3. #3
    Join Date
    Sep 2007
    Posts
    6
    thanks a lot

    it is working fine
    regards,
    gowri

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •