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

Thread: Describing Tables in PLSQL

  1. #1
    Join Date
    Jul 2008
    Posts
    2

    Describing Tables in PLSQL

    Hello Everyone,

    Here is what I want to do:

    I want to write a procedure that when executed will display all the names of the columns for me for all my tables.

    So, I thought I would declare a cursor that returns the object names for my tables; something like:
    select object_name
    from user_objects
    where object_type = 'TABLE';
    How can i dbms_output the column names for each table; something similar to what
    'describe table_name' would do?

    Thank you everyone in advance
    Que

  2. #2
    Join Date
    Jan 2001
    Posts
    2,828
    hi

    Look at user_tab_columns

    regards
    Hrishy

  3. #3
    Join Date
    Jul 2008
    Posts
    2

    Thumbs up Nice!

    Thanx Hrishy

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