1
EyeKeeper
MYSQL: Last record
  • 2003/11/14 15:35

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Hi folks,

how can I retrieve the last record of a table...
I tried to get it through max_id(var) and since it didn?t work I tried DESC LIMIT 1... but it didn?t work either...
thanks

2
ackbarr
Re: MYSQL: Last record

If it is a numerical id how about using:
SELECT MAX(ID_Field) as LastRecord FROM My_Table

3
EyeKeeper
Re: MYSQL: Last record
  • 2003/11/14 17:36

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


thanks ackbarr...
I?ve re-written the sql instruction to suite my needs...
in fact I wanted to get the whole row...
but I got it going...

Login

Who's Online

181 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 181


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits