Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rownum

Status
Not open for further replies.

ruimgp

IS-IT--Management
Feb 4, 2002
10
0
0
PT
Hi all,


How can I include a rownum (to return only the defined rownum) in a Informix query?

Thanks in advance

RP
 
RP:

I'm not understanding your question. By definition, informix includes a rowid which is valid for the life of a row:

select rowid, * from some_table

includes the integer rowid.

If you are using table fragmentation the rowid must be built separately. Sorry, I have no experience in this area.

Informix and others suggest not using the rowid because of portability issues, changes in the future, etc.

Regards,

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top