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: Funny result set in SQL query

Re: Funny result set in SQL query

From: Karl E. Jørgensen <kjorg_at_msn*DOT*com>
Date: 1998/01/14
Message-ID: <#dhWaqTI9GA.136@upnetnews03>#1/1

You can escape the '%' or '_' by using the ESCAPE option:

    Select table_name
    from all_tables
    where table_name like 'PRO\_%' escape '\'

this will require an exact match on the underscore because it is prefixed by '\'

--
Karl
Oracle Certified DBA
Received on Wed Jan 14 1998 - 00:00:00 CST

Original text of this message

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