A single-character wildcard
The statements in the following query illustrate the use of a single-character wildcard in a WHERE clause. Further, they demonstrate a query on a table that is not in the current database. The stock table is in the database sloth. Besides being outside the current demonstration database, sloth is on a separate database server called meerkat.
For more information, see Access and modify data in an external database and the HCL OneDB™ Guide to SQL:
Syntax.
Each statement in the query retrieves only those rows
for which the middle letter of the manu_code is
R
,
as the result shows. The comparison '_R_
' (for LIKE)
or '?R?
' (for MATCHES) specifies, from left to right,
the following items: - Any single character
- The letter
R
- Any single character