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

Home -> Community -> Usenet -> c.d.o.misc -> Re: too many values?

Re: too many values?

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Wed, 20 Nov 2002 17:20:10 GMT
Message-ID: <3DDBC441.D6BFB01A@exesolutions.com>


tony wrote:

> Hi. I'd like to do a "select into" in pl/sql but I am getting a too
> many values error. How can I select only the first value that
> satisfies the query?
>
> thanks

Many possibilities. One tony mentions which is WHERE ROWNUM = 1.

Another is SELECT MAX(value) FROM ...

Another is SELECT MIN(value) FROM ...

Depending on the situation you might use SELECT DISTINCT value FROM

Daniel Morgan Received on Wed Nov 20 2002 - 11:20:10 CST

Original text of this message

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