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

Thread: Modify Check Constraints

Hybrid View

  1. #1
    Join Date
    Dec 2002
    Posts
    32

    Modify Check Constraints

    Hi
    How can i modify a check constraint to add one more value to the existing one. Is there any method by which we can use the alter table modify constraint.... instead of using the drop and create it again.

    Thanks,
    Sajeev

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    You have to drop and recreate to modify the list of permitted values.

    For more flexibility you should consider replacing the check constraint with a foreign key to an index-organized table containing a list of legal values.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

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