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

Thread: constraints

  1. #1
    Join Date
    May 2001
    Location
    India
    Posts
    55
    Hi,

    I need to know which are tables does not have relationship between primary key and foreign key table

    Plz let me know,

    Regards,

    G.shankar.

  2. #2
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938
    Could you please reformulate your question?

  3. #3
    Join Date
    Oct 2000
    Posts
    467
    If you're looking for tables whithout any primary and froeign key constraints then....
    select tname from tab where tname not in(select table_name from dba_constraints where constraint_type in('P','R'));

    I hope I've got your question correctly.
    Vinit

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