Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: too many values?
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
![]() |
![]() |