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

Home -> Community -> Usenet -> c.d.o.misc -> Re: copying to a smaller column

Re: copying to a smaller column

From: Thomas Demmig <demmig_at_gmx.de>
Date: 21 Jun 1999 18:40:52 +0200
Message-ID: <u1zf57bhn.fsf@gmx.de>


Richard Baines <richardbaines_at_netscape.net> writes:

> I have a table containing two varchar2 columns, one of size 500 and one
> of size 100.
> Is there a way of copying the first 100 characters of the 500 column to
> the 100 column.

Try the following:

UPDATE table_x SET target_column = SUBSTR(source_column, 1, 100);

Greetings,

Thomas Received on Mon Jun 21 1999 - 11:40:52 CDT

Original text of this message

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