i want get last 10 records in database
this is my query
SELECT * FROM `mytable` WHERE `field` = '21' ORDER BY `id` ASC LIMIT 0, 10but this query get top 10 records
i need get last 10 record with ASC by id
help me please
thank you
SELECT * FROM `mytable` WHERE `field` = '21' ORDER BY `id` ASC LIMIT 0, 10but this query get top 10 records
|
|
|
SELECT * FROM (SELECT * FROM `mytable` WHERE field = '21' order by `id` DESC LIMIT 0,10) order by `id` ASC
SELECT * FROM `mytable` WHERE `field` = '21' ORDER BY `id` DESC LIMIT 0, 10Am I missing something?
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript
0 members, 1 guests, 0 anonymous users