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: Vic Millan <vmillan_at_dailyherald.com>
Date: Tue, 22 Jun 1999 16:43:52 GMT
Message-ID: <376fbcdb.11626953@news.alterdial.uu.net>


Try using substr.

substr(fieldname,1,100) - this line picks up the first 100 chars of fielname.

On Mon, 21 Jun 1999 17:07:22 +0100, Richard Baines <richardbaines_at_netscape.net> wrote:

>Hi
>
>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.
>I`ve been looking for some form of TRUNC command that works on varchars
>but there doesn`t seem to be anything.
>
>Any help gratefully received
>
>Richard
>
Received on Tue Jun 22 1999 - 11:43:52 CDT

Original text of this message

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