I have the following in a blob column:

18 21:20:48 CDT 2001: Customer notified of: Order
Accepted
Wed Apr 18 22:11:09
CDT 2001: Order cancelled: demo
Wed Apr 18 22:11:09 CDT 2001: Flagged for
Review.

When I run the following via SQL*Plus:
----
select
dbms_lob.instr(order_text,utl_raw.cast_to_raw('Customer'),1,1)
from order_help where order_id=5944108;
----

I get the answer: 103

What's up with that? :) Shouldn't I be getting back a
result of 23 (give or take 1)?

The contents of the BLOB column (order_text) were
converted from a LONG RAW using the TO_LOB( )
function, prior to the above query.

Thanks again!
-w


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Walter K
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to