"Rownum" in Informix
Posted in 2006
Topics: General Discussion
RowNum in Informix? How to implement it any syntax,ponters,e.g
On Fri, 2006-04-14 at 07:44, Kuldeep wrote:
> RowNum in Informix? How to implement it
> any syntax,ponters,e.g
>
You mean like
select rowid from foo
?
--
This e-mail is sponsored by http://www.integration-house.com/
Jonathan Stowe wrote:
> On Fri, 2006-04-14 at 07:44, Kuldeep wrote:
>> RowNum in Informix? How to implement it
>> any syntax,ponters,e.g
>>
>
> You mean like
>
> select rowid from foo>
> ?
ROWNUM in Oracle is used to limit resultsets.
E.g.
SELECT * FROM T WHERE rownum < 5
So it's a "relative row number" rather than a rowid.
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
"So it's a "relative row number" rather than a rowid. "
Select skip 10 first 5 a,b from tab1;
Starting with version 10.00.xC3, IDS provides SKIP and enhanced FIRST clause to provide pagination. The main difference between using these and ROWNUM in oracle is, IDS starts counting the rows after the ORDER BY clause is evaluated where as Oracle's ROWNUMS is generated before the ORDER BY is evaluated. cheers, Keshav. Links to IDS manuals: http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.sqls.doc/sqls652.htm http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.sqls.doc/sqls656.htm