Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL Question : From MS SQL Server to Oracle
You are right !
I look for your PL/SQL procedure.
Thank you very much
Erwin
Ed Prochak a écrit dans le message <7l0dkq$9rr$1_at_nnrp1.deja.com>...
>Warning! Andrew's query does not do what you want.
> (Test it. You'll see.)
>
>ROWNUM is a pseudocolumn and the values are assigned BEFORE any sorting
>takes place. So you effectly get 10 randomly selected entries from the
>table which are then ordered by Col1.
>
>Basically to do the exact same thing as SQL Server, you will need to
>write a PL/SQL procedure. Search this groups for previous discussions
>on this topic. Code has been posted before. (I may have a copy
>somewhere.)
>
>Good luck.
>
>
>
Received on Sat Jun 26 1999 - 14:58:40 CDT