Subject | Re: Get the row number in a select |
---|---|
Author | tomkrej |
Post date | 2008-03-28T15:14:21Z |
>create generator gen_row_01;
> row#, field1
> 1, a
> 2, b
> 3, c
> 4, d
> ... and so on
>
> Regards,
>
> Fabiano.
>
select gen_id(gen_row_01, 1), field1 from table1;
drop generator gen_row_01;
Tom