Re: alter table add column question
- From: Eugene Vtial <news@xxxxxxxxxxxxx>
- Date: Mon, 26 Sep 2005 21:00:27 -0400
Keith G Hicks wrote:
> 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
>
>
Just curious as to why you would want this?
Are you writing code that relies on column positions?
.
- Follow-Ups:
- Re: alter table add column question
- From: Keith G Hicks
- Re: alter table add column question
- References:
- alter table add column question
- From: Keith G Hicks
- alter table add column question
- Prev by Date: alter table add column question
- Next by Date: Re: alter table add column question
- Previous by thread: alter table add column question
- Next by thread: Re: alter table add column question
- Index(es):
Relevant Pages
|