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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Re: Rownum

Re: Re: Rownum

From: 刘继东 <liujd_at_cti.ac.cn>
Date: Wed, 19 Mar 2003 22:10:10 +0800
Message-Id: <24715.322369@fatcity.com>


Darrell Landrum,您好!

         thanx for your explaination.
I wonder :whether i can judge the select return. I find the rowNUM is not 0, is right?

>Santosh,
>
>Good question. Actually these 2 are not related.
>Rowid is an actual attribute assigned to each row of a table and is unique.
>Rownum is logically assigned to rows returned in a query (nothing to do with the table). It is assigned sequentially as rows are returned (meaning if you can't have a rownum 2 until you've gotten a rownum 1).
>
>Ex.
>SQL> select rowid from dual;
>
>ROWID
>------------------
>AAAACsAABAAAAGkAAA
>
>SQL> select rownum from dual;
>
> ROWNUM
>----------
> 1
>
>SQL> select rownum from dual where rownum=2;
>
>no rows selected
>
>SQL> select rownum from dual where rownum < 2;
>
> ROWNUM
>----------
> 1
>
>
>Hope this was helpful,
>Darrell
>
>
>
>
>>>> vsantosh_at_psi.soft.net 03/19/03 03:43AM >>>
>Hello list,
>
> I wanted to know the concept of Rownum.. Is it similar to Row Id ?
>
>Thanks and Regards,
>Santosh
>
>
>----------------------------------------------------------------------------
>----
>
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.net
>--
>Author: Darrell Landrum
> INET: dlandrum_at_zalecorp.com
>
>Fat City Network Services -- 858-538-5051 http://www.fatcity.com
>San Diego, California -- Mailing list and web hosting services
>---------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).

        致

礼!                                    
        刘继东
Received on Wed Mar 19 2003 - 08:10:10 CST

Original text of this message

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