Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Is there something equivalent to Unix "uniq" in Oracle?

Re: Is there something equivalent to Unix "uniq" in Oracle?

From: Daniel Morgan <damorgan_at_exxesolutions.com>
Date: Sat, 12 Jul 2003 09:52:12 -0700
Message-ID: <3F103CBC.1F6F1B21@exxesolutions.com>


Ramon F Herrera wrote:

> Does Oracle have a modifier or function equivalent
> to the "uniq" Unix command?
>
> I need to do something like this across the Internet:
>
> SELECT id FROM hugetable ORDER BY id;
>
> I know that there are lots of repeated values and
> I am trying to reduce the network traffic.
>
> TIA,
>
> -Ramon F. Herrera

As indicated by Sybrand ... you can use DISTINCT as in:

SELECT DISTINCT constraint_type FROM dba_constraints;

but if you are more used to UNIX you can also use:

SELECT UNIQUE constraint_type FROM dba_constraints;

either syntax works.

--
Daniel Morgan
http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Sat Jul 12 2003 - 11:52:12 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US