|
-
April 2nd, 2001, 09:07 AM
#1
Re ordering a data table
Is there a way through sql or other methods to simlpy change the ORDER of a table without dropping and re creating the table?
-
April 2nd, 2001, 09:55 AM
#2
Re: Re ordering a data table
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
[email protected]
-
April 2nd, 2001, 10:03 AM
#3
Re: Re ordering a data table
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.
-
April 2nd, 2001, 10:22 AM
#4
Re: Re ordering a data table
Put index on the field(s). It will give you the desired order.
Iouri Boutchkine
[email protected]
-
April 2nd, 2001, 10:25 AM
#5
Re: Re ordering a data table
Thanks for your help Louri.. I figured it out. Works fine now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|