alter table add column question
- From: "Keith G Hicks" <krh@xxxxxxxxxxx>
- Date: Mon, 26 Sep 2005 20:27:37 -0400
Is there a way to specify what position a column is in the table when
altering tables in code? I have a client that has me do major updates
annually which involve removing obsolete columns and adding new columns. I
set up code in batches and thoroughly test things before altering their
production data. So I might have a prg file that does soemthign like this
(dumb example but you'll get the idea):
alter table Customer drop column KidsNames
alter table Customer add column DogsNames c(50)
Let's say there are 12 columns in the table and I'd like DogsNames to occupy
the 6th position. I know of course that I can do "modi stru" and move it
manullly but that defeats the purpose of writing my code. How can I position
columns so that they are not just tacked onto the end of the table?
Thanks,
Keith
.
- Follow-Ups:
- Re: alter table add column question
- From: Paul Pedersen
- Re: alter table add column question
- From: Eugene Vtial
- Re: alter table add column question
- Prev by Date: Re: IP Address
- Next by Date: Re: alter table add column question
- Previous by thread: IP Address
- Next by thread: Re: alter table add column question
- Index(es):
Relevant Pages
|