Re: Restructuring a table
From: Silvio Bierman (sbierman_at_idfix.nl)
Date: 12/20/03
- Previous message: Sampsa Sohlman: "Re: Restructuring a table"
- In reply to: Ike: "Restructuring a table"
- Next in thread: brougham5_at_yahoo.com: "Re: Restructuring a table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 20 Dec 2003 01:23:21 +0100
"Ike" <rxv@hotmail.com> wrote in message
news:nEHEb.5086$wL6.1820@newsread1.news.atl.earthlink.net...
> Suppose I have a table, and it is populated with many rows already.
However,
> I realise I structured something wrong in my table. I dont want to have to
> go back and repopulate the entire table.
>
> For example, suppose I have a field:
>
> "inoutstatus INTEGER(3),"
>
> Which I now realize should be :
>
> "inoutstatus CHAR(1),"
>
> Is there a way I can change the entire table without losing the other
> records in each row? I can go back in and repopulate the inoutstatus
fields,
> but I really would like to know if there is merely some type of SQL
command
> I can issue to restructure the table this way.
>
> Thanks, Ike
>
>
Look into ALTER TABLE statements. Beware of conversion issues when changing
the type of a column.
Silvio Bierman
- Previous message: Sampsa Sohlman: "Re: Restructuring a table"
- In reply to: Ike: "Restructuring a table"
- Next in thread: brougham5_at_yahoo.com: "Re: Restructuring a table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|