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


Please Help Members By Posting Answers For Below Questions

What is format trigger?

1616


How to shutdown your 10g xe server from command line?

555


What is dual table oracle?

527


What are set operators?

646


How do you find out from the RMAN catalog if a particular archive log has been backed-up?

1659






How to create a stored program unit?

580


Explain the use of analyse option in exp command.

588


What is java oracle used for?

524


What is the difference between primary key and unique key and foreign key in oracle?

549


Explain the types of exception?

653


How to export your connection information to a file?

595


How to speed up webrick?

593


What is logical backup in oracle?

578


what is the dual table in oracle?

552


How to manage transaction isolation level?

561