Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> SQL Puzzle
I am trying to understand the function of escape character while using a
LIKE operator. Keep in mind, that '%' is the escape character in the
following query. Please let mw know what the output is and how it works.
The table 'databases' has one column 'db_names'.
SQL> select db_names from databases;
DB_NAMES
4 rows selected
SQL> SQL> select db_names from databases where db_names like '%e%';
where % is an escape character.
Thanks. Received on Thu Dec 17 1998 - 15:07:03 CST