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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to do this

Re: How to do this

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 02 Oct 2006 08:36:53 -0700
Message-ID: <1159803412.102125@bubbleator.drizzle.com>


sjoshi wrote:
> Hello All
>
> For SQLServer I could cast the ObjectMoniker coln which is of varbinary
> type to nvarchar to see if it's got the %OLE% string like in
>
> cast(S.ObjectMoniker as nvarchar(100)) like '%OLE%'
>
> How do I do this for Oracle ? In this case it is of type RAW(256). The
> doc.says that there is Implicit Conversion to char type but I'm getting
> only numbers when I try this :
>
> Select S.ObjectMoniker From CORESite S
>
> If I add the Where Clause, I get 0 rows
>
> Where S.ObjectMoniker Like '%OLE%'
>
> thanks
> Sunit

Never, ever, rely on an implicit conversion. And I'd very much appreciate the link to the page that you refer to so that I can have it corrected.

Thank you.

-- 
Daniel Morgan
University of Washington
Puget Sound Oracle Users Group
Received on Mon Oct 02 2006 - 10:36:53 CDT

Original text of this message

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