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

Home -> Community -> Usenet -> c.d.o.server -> Re: Does ORACLE has any stupid restrictions like MS-SQL

Re: Does ORACLE has any stupid restrictions like MS-SQL

From: Peter H. Larsen <petlars_at_pipmail.dknet.dk>
Date: 1997/03/26
Message-ID: <01bc3a26$02c27d40$3364c0c2@phl>#1/1

No Igor,

Stephane is right - you cannot CHANGE a datatype - but you can extent it. Meaning you can extent NUMBER(5) to NUMBER(10), VARCHAR2(10) to VARCHAR2(50). But you can NEVER decrease either.

To make any converstion you must create a copy of the table using create table as select, rename/drop the old, rename the new, and voila.

-- 
// Complete Data Service
// Peter H. Larsen
// petlars_at_pip.dknet.dk

Igor Chernysh <igor_at_ios.com> skrev i artiklen <33373E6E.2186_at_ios.com>...

> > Stephane Lajeunesse wrote:
> >
> > If I remember correctly, this is defined in the ANSI standard for SQL
> > and is also true for Oracle (cannot drop a column, or chage it's
> > datatype).
>
> The lastest is possible:
> alter table employee modify last_name varchar2(2000);
> WBW, Igor.
>
Received on Wed Mar 26 1997 - 00:00:00 CST

Original text of this message

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