What is the difference between column level constraints and
table level constraints?
Answer Posted / chaitu
If constraint is defined at the column definition(refer the below exmpls) then it is known to be column level, where as table leevel constraints is defined at the especially incase of composite primary key or composite foriegn key.
Examples
----------
CREATE TABLE CLASS ( ROOM NUMBER(10) CONSTRAINT ID CHECK (ID BETWEEN 1 AND 2000),
..........
.........
........
.........);
Table level
==================
CREATE TABLE CLASS (
ROOM NUMBER(10) ,
SUBJECT VARCHAR2(200),
CODE VARCHAR2(50) NOT NULL, /* Column level constraint*/
ID NUMBER(8,2),
CLASS_DATE DATE,
CONSTRAINT PK_1 PRIMARY KEY (ROOM)); /* table level
| Is This Answer Correct ? | 30 Yes | 9 No |
Post New Answer View All Answers
How to convert dates to characters in oracle?
How many types of cluster table in Oracle?
What is a sub query and what are the different types of subqueries?
How to create a new table by selecting rows from another table?
Explain the different normalization forms?
Whether any commands are used for months calculation? If so, what are they?
Explain the difference between a procedure and a function?
How to get the Installed Oracle Version Information ?
Is there an oracle sql query that aggregates multiple rows into one row?
Which environment variables are absolutely critical in order to run the OUI?
What is rich query?
Explain an index segment?
What is a dynamic performance view in oracle?
Can you tell me how to add new column in existing views?how?How is possible?
How to check the oracle tns settings?