Which columns did I declare as keys?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Which columns did I declare as keys?

  1. #1
    Join Date
    Jul 2000
    Posts
    70

    Talking

    What sql statement will show me the keys delcared in a certain table?
    I created a table and forgot which columns I declared as primary keys. Is there any way I could find out?
    Thanks.

  2. #2
    Join Date
    Jan 2001
    Posts
    515

    user_cons_columns

    select constraint_name,column_name from user_cons_columns where table_name = ' <table_name>';

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