Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Uniqueness
You can also:
Select id, count(*)
>From mytbl
Group by id
Having count(*) > 1
/
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Kean Jacinta
Sent: Wednesday, May 18, 2005 2:12 AM
To: oracle-l_at_freelists.org
Subject: Uniqueness
Hi again,
Is there a way to check for uniqueness of a value ? Apart from set the column to be unique ?
For example :
Table : mytbl
PK ID
Insert into mytbl (id) values (2);
=20
Oracle will give error.=20
-- http://www.freelists.org/webpage/oracle-l -- http://www.freelists.org/webpage/oracle-lReceived on Wed May 18 2005 - 08:05:58 CDT
![]() |
![]() |