Results 1 to 3 of 3

Thread: How to find Defined key fields in a table?

  1. #1
    Contributing Member
    Join Date
    Dec 2006
    Answers
    39

    How to find Defined key fields in a table?

    Folks,

    Is it possible to find or display key fields of a tablein oracle 9i? ANy data dictionaries will help??


    Please do suggest some ways. Ur replies will be appreciated.

    Thanks!
    Sharif.S


  2. #2
    Expert Member
    Join Date
    Sep 2006
    Answers
    130

    Re: How to find Defined key fields in a table?

    Hi Sharif,

    what do u mean by key fields here?

    *** Innila ***


  3. #3
    Expert Member
    Join Date
    Dec 2006
    Answers
    204

    Re: How to find Defined key fields in a table?

    Yeah.. U can do it.
    Dba_constraints view will have primary key constraint name for a table.
    Having that constraint name, query dba_cons_columns to get the column name(thats the key field).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact