
- Forum
- Databases
- Oracle How much constraints can a table with 100 columns have
-
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
-
Expert Member
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
-
Junior Member
Re: How much constraints can a table with 100 columns have
You can have any number of constraints.There is no restriction in that.
-
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
-
Forum Rules