From: Dan Nelson Date: August 19 2003 8:26pm Subject: Re: "hard" sort table order List-Archive: http://lists.mysql.com/mysql/147985 Message-Id: <20030819202653.GE5141@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In the last episode (Aug 19), anders thoresson said: > Is it possible to resort the rows in a table like in a query where using > ORDER BY, but have to new sort order stored in the table structure? CREATE TABLE newtable AS SELECT * FROM oldtable ORDER BY myfield newtable will have its records physically sorted. You can also use myisamchk -R on a table to force the records to be physically sorted by a particular index. This only works on MyISAM tables. -- Dan Nelson dnelson@stripped