Can we create more than one constraint to column ?
Answer Posted / nageswararao.kamineni
we can create morethan one constrint on column
for example
create table emp11
(empno number(2) primary key,
ename varchar2(20) unique,not null
sal number(7,2));
here a table can containe only one primary key,if we wnat
declare more then one primary key,we can create like this
using unique and not null constarint.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Give the different types of rollback segments.
How would you change old and new values in an insert, delete and update triggers?
Differentiate between translate and replace?
What is a cognitive schema?
how do we code triggers , store procedure , Performance tuning and indexing in a Java Project? Pls kindly get me the perfect answer with the code for each....thank you in advance............pls any body kindly help me soon as possible....
How to do a full database export?
Explain integrity constraints?
What are the database administrators utilities available?
What are the uses of a database trigger?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
What is the maximum number of triggers that can be applied to a single table?
What are the differences between interval year to month and interval day to second?
Explain the use of ignore option in imp command.
What happens if the update subquery returns multiple rows?
How do you store pictures in a database?