Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a table into date order

Status
Not open for further replies.

sinbadly

Technical User
Mar 16, 2006
126
GB
How can I reconstruct a mysql table so that 'id' is in date order - ie, matches the date order, please? Cheers.
 
Do you mean you want to change the physical order of records in the table file? You can do that by:
[tt]
ALTER tablename ORDER BY datefield
[/tt]
This reordering will not affect table contents or query results, but could make some queries faster (or slower).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top