hello - I am trying to do what I'm sure is a relatively simple query on my db but am having trouble with my syntax - this is my best explanation of what I want to achieve (obviously not valid SQL!!). .
select * from table
order by rowID asc
limit LAST 20
I have table with a primary key of an auto-incremeting number - i wish to return the last 20 results in ascending order . . .curretnly I have tried. . .
select * from table order by rowID asc limit 20;
it returns the first 20 rows in the table ordered correctly - i have also tried. . .
create temporary table tmp
select from table order by rowID asc;
select from tmp limit 20;
but that didn;t seem quite right and looked very ugly. . . . .
your time and help much apprecitated.