Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Quest...
"Noel" <tbal_at_go2.pl> wrote in message news:c0aclh$c6f$1_at_inews.gazeta.pl...
> I'm now working on moving one Oracle Application to another
> and faced one problem.
> In the name of data objects i'm using '_' char.
> Now i would like to find all objects which name constains '_'.
> First obvious solution didn't succes,
> SELECT *
> FROM ALL_OBJECTS
> WHERE OBJECT_NAME LIKE 'TAB_%';
> since '_' means 'any char'.
>
> What i better and correct solution? (My answer is on next page of post).
> --
Hi Noel
SELECT *
FROM ALL_OBJECTS
WHERE OBJECT_NAME LIKE 'TAB/_%' ESCAPE '/';
should do the trick (the escape clause defines a special char which when
place in front of the "_" disables it's wildcard behaviour).
Good Luck
Richard Received on Tue Feb 10 2004 - 05:16:31 CST