How can I get the foreign key and packages info?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: How can I get the foreign key and packages info?

  1. #1
    Join Date
    Sep 2001
    Posts
    99

    How can I get the foreign key and packages info?

    I can get the table info from sys.user_tables.get the column info from sys.er_tab_columns.Now I want get foreign key info ,and package info.which view can provide this info?
    please help.
    ocean

  2. #2
    Join Date
    Feb 2001
    Location
    UAE
    Posts
    304
    You can check user_constraints view for Primary and Foreign keys. There is a field called Constraint_Type, which shows whether it is Primary(P) or Foreign(R) key.

    If you want a list of columns in primary or foreign key, then refer to user_cons_columns view.

    For package source refer to user_source view.
    Agasimani
    OCP(10g/9i/8i/8)

  3. #3
    Join Date
    Sep 2001
    Posts
    99

    thanks

    thanks very much
    ocean

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