DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: SQL Query

  1. #1
    Join Date
    Oct 2001
    Posts
    3

    Cool

    I want to select unique columns from many tables
    within a schema. Pl. let me know.

  2. #2
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    From the data dictionary?

  3. #3
    Join Date
    Oct 2001
    Posts
    3

    SQL Query

    to select from user defined tables

  4. #4
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    dont understand your question at all

  5. #5
    Join Date
    Oct 2001
    Posts
    3

    SQL Query

    I've found the answer myself. To select unique column names
    from multiple tables.

    select distinct column_name from user_tab_columns
    where table_name like '%staging%';

    thanks.

  6. #6
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    1,185
    You will retrieve columns from tables owned by your user, that is, the logon you used.

    If you have DBA priviliges, select from DBA_TAB_COLUMNS and screen out users like SYS that are not relevant.

    Good luck.
    David Knight
    OCP DBA 8i, 9i, 10g

Posting Permissions

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


Click Here to Expand Forum to Full Width