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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Hextoraw and rawtohex

RE: Hextoraw and rawtohex

From: Elliott, Patrick <Patrick.Elliott_at_bestbuy.com>
Date: Tue, 18 Jul 2000 15:30:22 -0500
Message-Id: <10562.112317@fatcity.com>


You can't perform an hextoraw function on a raw field (If indeed prod_id is a raw field.) Here is the definition from the manual:

HEXTORAW
Syntax  

Purpose
HEXTORAW converts char containing hexadecimal digits to a raw value.

Example
INSERT INTO graphics (raw_column)
  SELECT HEXTORAW('7D') FROM DUAL;
> -----Original Message-----
> From: Linda Hagedorn [SMTP:Linda_at_pets.com]
> Sent: Tuesday, July 18, 2000 4:05 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Hextoraw and rawtohex
>
> Hello,
>
> Does someone have and example of a where clause using hextoraw?
>
> I can get rawtohex to work:
> select rawtohex(prod_id) from
> bv_ext_prod_vis_history where prod_id like '%811348818%' ;
>
> But hextoraw is failing with this error:
> SQL> select hextoraw(prod_id) from
> 2 bv_ext_prod_vis_history where prod_id like '%811348818%' ;
> ERROR:
> ORA-01465: invalid hex number
>
>
> Linda Hagedorn
>
> Oracle. It's not x'C4C292'.
> --
> Author: Linda Hagedorn
> INET: Linda_at_pets.com
>
> 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 Tue Jul 18 2000 - 15:30:22 CDT

Original text of this message

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