Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: How can I modify (decrease) a column ?

Re: How can I modify (decrease) a column ?

From: Donna Tafoya <dmtafoya_at_lucent.com>
Date: 2000/05/30
Message-ID: <3934192C.CD09DC95@lucent.com>#1/1

You cannot decrease the size of a column only incerase it. My suggestion is to copy the table and recreate it with the correct column char(8). Then insert from the old table into the new table.

Donna Tafoya

Peter Wichert wrote:

> Hi,
>
> I'm trying to change the layout of a table. I just want to change a CHAR(10)
> to CHAR(8), and ORACLE tells me to clear (empty) the table first. But I
> don't have records with longer entries than 8 chars, so why must I delete my
> records?
>
> It says:
>
> "column to be modified must be empty to decrease column length"
>
> Generally spoken, is there a solution to savely change my database layout
> (shure, "compatible" changes only) without loosing my data (if I know what
> i'm doing :-)) ?
>
> Thanks for any help,
> Peter
Received on Tue May 30 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US