Re: Insert a new field into a table?
- From: David Kerber <ns_dkerber@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 11 Jul 2008 11:14:23 -0400
In article <14te741i3vuhcvs4mapai50t680cstdcp1@xxxxxxx>,
ironwoodcanyon@xxxxxxxxx says...
On Fri, 11 Jul 2008 07:46:01 -0700, "Steve Gerrard"
<mynamehere@xxxxxxxxxxx> wrote:
Martin wrote:In general, I would agree with you. In this case, the reason I want to
I posted this question over in the vb.database.dao newsgroup but
haven't gotten an answer yet; hoping someone here might be able to
shed some light on this.
What I would like to do is INSERT the new field at a specified place
in the list of existing fields. Is it possible to do this? If so, how?
I think in most database systems there is no provision for inserting a column in
the middle of a table, because in general, there is no need. It is customary to
specify the desired columns in the desired order in every Select query anyway.
The column order in the table is just a reflection of the order in which they
were added to the table, and has no other meaning or use.
do this is that, in a couple of places in my program, I am updating
field values in a loop that steps through a series of fields in their
ordinal number sequence. Adding the new fields at the end of the list
completely trashes that logic.
I'll probably end up doing what I've done a couple of other times -
just delete the table and recreate it from scratch. (Of course, then I
lose any existing data).
Why? There's no reason you couldn't copy off the data and re-import it
after making your table mods. Or is that more work than the data is
worth?
--
/~\ The ASCII
\ / Ribbon Campaign
X Against HTML
/ \ Email!
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
.
- References:
- Insert a new field into a table?
- From: Martin
- Re: Insert a new field into a table?
- From: Steve Gerrard
- Re: Insert a new field into a table?
- From: Martin
- Insert a new field into a table?
- Prev by Date: Re: Insert a new field into a table?
- Next by Date: Re: Text File Parsing
- Previous by thread: Re: Insert a new field into a table?
- Next by thread: Re: Insert a new field into a table?
- Index(es):
Relevant Pages
|