WHAT IS THE DIFFERENCE BETWEEN PRIMARY KEY(PK) CONSTRAINT
AND UNIQUE KEY(UK) + NOT NULL(NN) CONSTRAINT ASSIGN TO A
COLUMN ?
INSTEAD OF ASSIGNING PK ,WE CAN ASSIGN UK + NN TO A COLUMN.
WHAT ARE THE MARRITS AND DEMARITS BETWEEN THE ABOVE TWO?THE
ABOVE TWO ARE SAME,THEY DON'T ALLOW DUPLICATE AS WELL AS
NULL VALUES.
Answer Posted / manikanta
By default primary key maintain clusterd index,All the
records are stored in stored order.By takeing this
advantage query will be execute fast.
Unique maintain nonclusted index,All the records are not in
stored order.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to use "out" parameter properly?
What is the fastest query method to fetch data from the table?
How to convert a string to a date in oracle database?
What is an oracle tablespace?
What happens if recursive calls get out of control?
How to use subqueries in the from clause in oracle?
In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?
what are steps for interface? where is exchange rate defined in which table?
HI, Please let me know the syllabus for Oracle OCA and OCP Certification
There are n numbers of flatfile of exactly same format are placed in a folder.Can we load these flatfile's data one by one to a single relational table by a single session??
How to call a sub procedure?
How are extents allocated to a segment?
Why do we use bulk collect in oracle?
In what script is snap$ created? In what script is the scott/tiger schema created?
How to do paging with oracle?