How can I show in query (or form) the record number ?
( the autoincrement filed can have some holes depend if I was deleted some records)
SELECT id,name FROM mytable ORDER BY id DESC ;
# id Name
---------------
1 5 Beta
2 3 Alpha
3 1 Teta
SELECT id,name FROM mytable ORDER by name;
# id Name
---------------
1 3 Alpha
2 5 Beta
3 1 Teta
I want to get this "#" column.
I hope u understand what I need.
Thank's in advance
Otto
( the autoincrement filed can have some holes depend if I was deleted some records)
SELECT id,name FROM mytable ORDER BY id DESC ;
# id Name
---------------
1 5 Beta
2 3 Alpha
3 1 Teta
SELECT id,name FROM mytable ORDER by name;
# id Name
---------------
1 3 Alpha
2 5 Beta
3 1 Teta
I want to get this "#" column.
I hope u understand what I need.
Thank's in advance
Otto