MySQL Forums
Forum List  »  French

Re: Last ID
Posted by: Huu Da Tran
Date: September 22, 2008 08:36AM

partir du haut ou partir du bas de la pile ne fait aucun sens puisque les données ne sont pas assurées d'être ordonnées de la même manière d'une fois à l'autre, à moins d'utiliser un order by (et même là, comment sont traités les doublons).

Est-ce que c'est quelque chose comme ceci que tu recherches?
SELECT * FROM table WHERE ID>$ID ORDER BY ID DESC
ou
SELECT * FROM table WHERE ID>$ID ORDER BY ID ASC

Huu Da
MySQL flirter

Options: ReplyQuote


Subject
Views
Written By
Posted
18668
April 02, 2008 06:40PM
5905
April 02, 2008 11:44PM
5156
April 03, 2008 12:21PM
4841
April 04, 2008 10:38AM
4841
April 04, 2008 09:34PM
5094
June 11, 2008 04:34PM
4790
September 15, 2008 04:24PM
4493
September 16, 2008 08:10AM
3718
September 17, 2008 06:19PM
Re: Last ID
4140
September 22, 2008 08:36AM
4104
September 22, 2008 03:07PM
3971
September 23, 2008 08:45AM
4302
September 26, 2008 07:20AM
4346
September 26, 2008 04:19PM
4002
December 27, 2008 01:07PM
4216
December 26, 2008 10:07PM
5006
April 08, 2008 01:14AM
5538
June 09, 2008 04:47PM
3692
December 27, 2008 01:02PM
3991
February 05, 2009 08:40PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.