Re: strange thing about the SQL method
From: onedaywhen (jamiecollins_at_xsmail.com)
Date: 03/16/05
- Next message: sparker: "RE: Help - Db corrupted"
- Previous message: Ron Weiner: "Re: DAO MUCH faster than ADO in this test"
- In reply to: Ron Weiner: "Re: strange thing about the SQL method"
- Next in thread: Jeff: "Re: strange thing about the SQL method"
- Messages sorted by: [ date ] [ thread ]
Date: 16 Mar 2005 04:33:59 -0800
Ron Weiner wrote:
> Because of the structure of your table is there is no "natural"
order.
> Typically when we want data to be in some kind of order we'd use an
Order By
> clause when we retrieve the data.
>
> If you want the data to be in some kind of natural order in the
table, then
> create a Primary Key using all of your columns.
PK or no PK, the rows will be stored in date/time created order until
the file is compacted, at which time the physical order is rebuilt on
the PK if one exists (don't mention 'clustered index': I did and it
upset some people <g>). Even if the PK is a composite comprising all
columns in the table, the new PK order may or may not be in the order
they were created, depending on circumstances.
Jamie.
--
- Next message: sparker: "RE: Help - Db corrupted"
- Previous message: Ron Weiner: "Re: DAO MUCH faster than ADO in this test"
- In reply to: Ron Weiner: "Re: strange thing about the SQL method"
- Next in thread: Jeff: "Re: strange thing about the SQL method"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|