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_email.msn.com>
Date: 1998/01/13
Message-ID: <eRCUQtBI9GA.225@upnetnews03>#1/1

That's correct. The underscore is a matches ANY character:

    Select table_name from dba_tables where table_name like 'PRO_';

could return stuff like

    'PROA'
    'PROB',
    'PROX'

etc.

--
Karl
Oracle Certified DBA
Christopher Jusitce wrote in message <34bad3cb.806387_at_news.erols.com>...

>Try the following query...
>
>SELECT TABLE_NAME FROM SYS.DBA_TABLES WHERE TABLE_NAME LIKE 'PRO_%;
>
>If you have tables like PRO_ACCOUNT and PROACCOUNT, it will return
>both tables!!!
>
>Wierd,
>
>Chris
>
>justice_at_platinum.com
Received on Tue Jan 13 1998 - 00:00:00 CST

Original text of this message

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