Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Oracle / Oracle Server / January 2008

Tip: Looking for answers? Try searching our database.

What is unique_id in Oracle and what's the use of it

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
newa - 30 Jan 2008 03:47 GMT
Hi,

I am new to Oracle and today someone asked me about the "fference
between unique_id and primary key. Which to use and why?" I know about
the primary key but not unique_id. Can someone kindly give me an
overview of it?

Thanks in advance.
news.verizon.net - 30 Jan 2008 06:04 GMT
> Hi,
>
[quoted text clipped - 4 lines]
>
> Thanks in advance.

What does it sound like?
Jim
Robert Klemme - 30 Jan 2008 07:19 GMT
>> Hi,
>>
[quoted text clipped - 6 lines]
>
> What does it sound like?

Homework question.

:-)

    robert
venki - 30 Jan 2008 11:01 GMT
> Hi,
>
[quoted text clipped - 4 lines]
>
> Thanks in advance.

Primary key is the combination of NOTNULL constraint and unique key
constraint.
so it ll never allow duplicate and null value.But unique key  allows
number of null value but it never allow duplicate value.
Do not compare this to MS sqlserver, bcoz it some what different from
oracle to sql. Bcoz unique key will alow only one null value.

venki
Mark D Powell - 30 Jan 2008 14:36 GMT
> > Hi,
>
[quoted text clipped - 13 lines]
>
> venki

This question or minor variations of it have been asked many times.
Here is a brief explanation of what PK, UK, and FK constraints are and
the indexes used to support them.

What is the difference between a unique index and a unique constraint?
    http://www.jlcomp.demon.co.uk/faq/uk_idx_con.html

HTH -- Mark D Powell --
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.