|
|
|
Junior Member
      
участник
Last Login: 12.09.2005 0:53
Сообщ.: 19,
Visits: 210
|
|
| как получить не N первых (по LIMIT N), а N последних строк запроса?
|
|
|
|
|
Supreme Being
      
участник
Last Login: 17.02.2006 22:00
Сообщ.: 271,
Visits: 2 982
|
|
| If I understand your question right then you need to sort DESC if you sort ASC and ASC if you sort DESC.
|
|
|
|
|
Junior Member
      
участник
Last Login: 12.09.2005 0:53
Сообщ.: 19,
Visits: 210
|
|
yep, but i wanna have the records in the same order as they were added to the database, not inversely ordered... something nested like
SELECT ItemID, ItemName FROM (SELECT ItemID, ItemName FROM table_items ORDER BY ItemID DESC LIMIT 10) ORDER BY ItemID ? i think it''s too complicated =)
|
|
|
|