how i select columns names from any table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aatish19
    New Member
    • Jan 2008
    • 2

    how i select columns names from any table

    Hi all,

    i want to fetch columns names from my table using pl/sql

    what view i can use??
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    1.You need to use the dictionary object USER_TAB_COLS.
    2.Pass the table name.
    3.Use cursor to fetch the coumn name.

    Comment

    • Pilgrim333
      New Member
      • Oct 2008
      • 127

      #3
      Hi,

      You can use a sql qeury in your pl/sql procedure

      Pilgrim.

      [edit] my bad, didn't read that well :D what the post above said

      Comment

      • aatish19
        New Member
        • Jan 2008
        • 2

        #4
        Originally posted by debasisdas
        1.You need to use the dictionary object USER_TAB_COLS.
        2.Pass the table name.
        3.Use cursor to fetch the coumn name.
        Thanks dear...

        Kashif Arain

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          you are always welcome buddy.

          Comment

          Working...