Results 1 to 2 of 2

Thread: Primary Key References

  1. #1
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Primary Key References

    How to know whether primary key of table has any dependent referential constraints or not? Can we find out that information using USER_COSNTRAINTS and USER_CONS_COLUMNS?


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Primary Key References

    TRY TO USE THIS QUERY

    Code:
    select CONSTRAINT_NAME  from  user_constraints where CONSTRAINT_TYPE='R' AND R_CONSTRAINT_NAME='PK_TITLE'
    You can pass the name of the primary key to find the dependency.


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