I am using informix database, I want a query which you could also generate a row number along with the query
Like
select row_number(),firstName,lastN
I think the easiest way would be to use the following code and adjust its return accordingly. SELECT rowid, * FROM table
It works for me but please note that it will return the row number in the database, not the row number in the query.
P.S. it's an accepted answer from Experts Exchange.