Is primary key = unique key,not null?
If yes,please explain
IF No,please explain

Answer Posted / anamika niit

Primary key and unique are Entity integrity constraints

Primary key allows each row in a table to be uniquely
identified and ensures that no duplicate rows exist and no
null values are entered.

Unique key constraint is used to prevent the duplication of
key values within the rows of a table and allow null
values. (In oracle, one null is not equal to another null).

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of database triggers exist?

577


Explain an exception?

568


What is the difference between translate and replace in oracle?

659


How to define an anonymous procedure with variables?

547


what is the use of system.effective.date variable in oracle?

673






How to connect to the server with user account: sys?

568


Explain a synonym?

608


What is the dynamic sql in oracle?

603


How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?

2735


Which is better Oracle or MS SQL? Why?

5446


What are the different types of record groups in oracle? Explain each of them

606


How do we get field detail of a table?

628


How to upsert (update or insert into a table)?

541


Explain overloading. Can functions be overloaded?

577


How to bring a tablespace online?

522