Re: [SQL] retrieve row number

2006-11-30 Thread A. Kretschmer
am Fri, dem 01.12.2006, um 8:31:41 +0200 mailte Pascal Tufenkji folgendes: > Hi, > > > > Can I retrieve the row number in a select statement? > For example : if I have the following table ?foo? > I should obtain the following result : > > > > row_number | col1 | col2 > ---+--+

[SQL] retrieve row number

2006-11-30 Thread Pascal Tufenkji
Hi, Can I retrieve the row number in a select statement? For example : if I have the following table "foo" col1 | col2 -+- a | x b | y c | z select ?? as row_number, col1, col2 from foo; I should obtain the following result : row_number | col1 | col2 -