Joe Keller
April 2nd, 2001, 09:07 AM
Is there a way through sql or other methods to simlpy change the ORDER of a table without dropping and re creating the table?
|
Click to See Complete Forum and Search --> : Re ordering a data table Joe Keller April 2nd, 2001, 09:07 AM Is there a way through sql or other methods to simlpy change the ORDER of a table without dropping and re creating the table? Iouri April 2nd, 2001, 09:55 AM Hi Joe What order are talking about 1.Records order? a.You can either write an SQL - select * from YourTable order by YourField b.Put index on the field, which automatically displays records in order 2.Fields order? a.what database are working with. In Access you can drag field to any location. or you can use SQL instead select * - use select Field2, Field3, Field1. Fields will be displayed in SQL statement order Iouri Boutchkine iouri@hotsheet.com Joe Keller April 2nd, 2001, 10:03 AM It is record order that I am concerned with not field order. The dilema im having here is this. When I do a select statement I can get a recordset in the correct order. That is great. But what I need is the TABLE to be in the correct order. So... I need to do a SELECT INTO the same table. And you cant have the same source and destination tables. Iouri April 2nd, 2001, 10:22 AM Put index on the field(s). It will give you the desired order. Iouri Boutchkine iouri@hotsheet.com Joe Keller April 2nd, 2001, 10:25 AM Thanks for your help Louri.. I figured it out. Works fine now. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |