What is the difference between column level constraints and
table level constraints?
Answers were Sorted based on User's Feedback
column constraint is only for particular column to provide restriction,
where in table level constraint we define multiple constraint at same time except not null .
not null is only used for column level.
ex: create table customer(cust_id number(2) not null,cust_name varchar2(20)check(cust_name like 'C%');
above example is shows constraints on column level.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / riddhi
Difference between column level constraints and table level constraints
1)Column level constraint is declared at the time of creating a table but table level constraint is created after table is created.
2)Column Level Constraints refers Only One Column whereas table level constraints refers to one or more than one column
3)not null constraint can't be created as table level constraints because it don't have name.
Column level constraint-
Ex : Create table emp
( empno number primary Key);
Table level constraint
Ex: Create table emp
( empno number);
Constraints pk_con primary Key(empno));
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / chunnu
is questn ka ans mai pichle 50 saal se dund rha hu....mile
to apne pas hi rakhna.........varna mere sir ko bta
dena .....sir kha gae...pad k ana bhul gae the.....
| Is This Answer Correct ? | 32 Yes | 39 No |
Answer / hari
Column level and Table level Constraint
In column level we will give primary key after the data type
create table table-name(name varchar2(10) primary key)
In Table Level we will use constraint name..
| Is This Answer Correct ? | 19 Yes | 29 No |
What is enter substitution variable in oracle?
Please explain oracle left join with an example?
Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.
Explain what are the different type of segments?
Why do we need integrity constraints in a database?
What are the benefits of ordbms?
How to rename a tablespace in oracle?
What is varray?
What is Segment Advisor in Oracle?
How to count groups returned with the group by clause in oracle?
What are the differences between number and binary_float in oracle?
How can return max date row A b c d e 1 2 1-mar-09 5 10 1 2 10-mar-09 5 10 Only using oracle predefined function. Not user defined. Output:-- A b c d e 1 2 10-mar-09 5 10