Results 1 to 4 of 4

Thread: How much constraints can a table with 100 columns have

  1. #1
    Geek_Guest
    Guest

    How much constraints can a table with 100 columns have

    A table can have 100 columns. But can anybody tell me, For such tables how much constraints can have ?

    Question asked by visitor Vinod pandit


  2. #2
    Expert Member
    Join Date
    Jun 2006
    Answers
    410

    Re: How much constraints can a table with 100 columns have

    You can have any number of constrains. If I am not wrong there is not upper limit for constraints on a table.

    Check this out for other limitations,

    http://www.iselfschooling.com/mc4art...Limitation.htm


  3. #3

    Re: How much constraints can a table with 100 columns have

    You can have any number of constraints.There is no restriction in that.


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

    Re: How much constraints can a table with 100 columns have

    There is no limit to the number of constraints that can be defined on a table. A table can have only one PRIMARY KEY constraint. There is no limit on the number of FOREIGN KEY constraints on that table. But according to the Oracle documentation, "Because composite primary and unique keys are limited to 32 columns, a composite foreign key is also limited to 32 columns." And also from the Oracle documentation, "There is no limit to the number of CHECK constraints that can be defined that reference a column." This statement tells me that there is no limit to the number of total constraints on a table.


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