From Suhen.Pather@strandbags.com.au Fri, 03 Aug 2001 11:38:24 -0700 From: Suhen Pather Date: Fri, 03 Aug 2001 11:38:24 -0700 Subject: RE: SQL Question Message-ID: MIME-Version: 1.0 Content-Type: text/plain Darren, You would need to use the escape character. Try this, select table_name from dba_tables where table_name like 'EDL-_WORK-_%'ESCAPE'-'; Suhen I have a simple query, but the results are somewhat puzzling select table_name from dba_tables where table_name like 'EDL_WORK_%' and I received the following TABLE_NAME ------------------------- EDL_WORKSTATION_LOCATION EDL_WORK_AR_ENTITIES Why would I be receiving the first record (EDL_WORKSTATION) if I try EDL_WORK_A% I get the correct result. Is there something about the _% combination ? To solve the problem I used the substr command as part of the where clause. Darren ---------------------------------------------------------------------------- ------------------------------------------------- Darren Browett P.Eng This message was transmitted Systems Admin/DBA using 100% recycled electrons Information and Communications Technology. City of Coquitlam P:(604) 927 - 3614 E:dbrowett@city.coquitlam.bc.ca ---------------------------------------------------------------------------- ------------------------------------------------- -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Browett, Darren INET: dbrowett@city.coquitlam.bc.ca 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: ListGuru@fatcity.com (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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Suhen Pather INET: Suhen.Pather@strandbags.com.au 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: ListGuru@fatcity.com (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).