dickiebird
Programmer
Can anybody tell me how I can get the last record from a table.
e.g. I created a table with 3 fields id, birthdate and name.
I filled the table with data.
How can I go to the last data I hava inserted? How can I know what was the last ID I inserted?
On Oracle I'd do :
select * from tablcode where rowid = ( select max(rowid) from tablcode)
But this is Sybase.........
Thanks in Advance
;-)
Dickie Bird
db@dickiebird.freeserve.co.uk
e.g. I created a table with 3 fields id, birthdate and name.
I filled the table with data.
How can I go to the last data I hava inserted? How can I know what was the last ID I inserted?
On Oracle I'd do :
select * from tablcode where rowid = ( select max(rowid) from tablcode)
But this is Sybase.........
Thanks in Advance
;-)
Dickie Bird
db@dickiebird.freeserve.co.uk