Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Inserting raw ascii into a varchar2 field
Thanks. My error was trying to code hex in the chr(..) function to retrieve ascii, when it should be decimal to ascii.
chr(12) = FF (form feed) in ascii
chr(0D) = invalid construct because it's hex
Linda
-----Original Message-----
From: Connor McDonald [mailto:hamcdc_at_yahoo.co.uk]
Sent: Friday, January 11, 2002 9:21 AM
To: Multiple recipients of list ORACLE-L
Subject: Re: Inserting raw ascii into a varchar2 field
Checkout UTL_RAW.CAST_TO_RAW to convert varchar2 to raw datatypes
hth
connor
--- "Hagedorn, Linda" <lindah_at_epocrates.com> wrote: >
Hello,
>
> Does anyone have an example of how to insert raw
> ascii into a varchar2
> field?
>
> For example,
> CREATE TABLE LH_test
> ( col1 varchar2(10),
> col2 varchar2(10), > col3 varchar2(10) ) > PCTFREE 0 PCTUSED 80 INITRANS 1 MAXTRANS 255
> STORAGE(INITIAL 5M NEXT 5M MINEXTENTS 1 > MAXEXTENTS 2147483645 PCTINCREASE 0 > FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) > TABLESPACE REGDAT ;
>
"Some days you're the pigeon, some days you're the statue"
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: =?iso-8859-1?q?Connor=20McDonald?= INET: hamcdc_at_yahoo.co.uk Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Jan 11 2002 - 12:45:22 CST