php-db | 2001071
Date: 07/04/01
- Next message: Mats Remman: "RE: [PHP-DB] Authomatic Sorting"
- Previous message: Paul Burney: "Re: [PHP-DB] Authomatic Sorting"
- In reply to: Paul Burney: "Re: [PHP-DB] Authomatic Sorting"
- Next in thread: Christopher Hebert: "[PHP-DB] display errors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
D you ever create an index on the primary key to speed things up??
ken
----- Original Message -----
From: "Paul Burney" <burney <email protected>>
To: "Wilmar Pérez" <wilmar.perez <email protected>>; "PHP List"
<php-db <email protected>>
Sent: Wednesday, July 04, 2001 3:18 PM
Subject: Re: [PHP-DB] Authomatic Sorting
on 7/4/01 1:50 PM, Wilmar Pérez at wilmar.perez <email protected> wrote:
> I've got a table with an autoincrement field which is the registry's ID,
> everything goes well until I delete any registry. MySQL doesn't re-sorts
> the information. That is, I have the following:
<snip>
Just add an "ORDER BY" clause to your query. That is, if you want to sort
by reg_id, append "ORDER BY reg_id". You can also add a DESC keyword to put
them in reverse order.
HTH.
Sincerely,
Paul Burney
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Paul Burney
Webmaster && Open Source Developer
UCLA -> GSE&IS -> ETU
(310) 825-8365
<webmaster <email protected>>
<http://www.gseis.ucla.edu/>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mats Remman: "RE: [PHP-DB] Authomatic Sorting"
- Previous message: Paul Burney: "Re: [PHP-DB] Authomatic Sorting"
- In reply to: Paul Burney: "Re: [PHP-DB] Authomatic Sorting"
- Next in thread: Christopher Hebert: "[PHP-DB] display errors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

