In most SQL applications, a column value that contains character values can be matched to a pattern of characters for the purpose of retrieving one or more rows from a table. This is often referred to as pattern matching. Pattern matching is useful when a user cannot be specific about the data to be retrieved. For instance:
The LIKE
operator is used in the WHERE
clause to enable you to
retrieve records that have a partial match with a column value. The
LIKE
operator has the following format:
WHERE column-name LIKE 'pattern'
In Texis the capabilities of the LIKE
clause have been exponentially
increased through implementation of all features of the Metamorph
search engine. Rather than the limited single item string search
allowed in traditional SQL applications, Texis allows any valid
Metamorph query to be substituted for the 'pattern'
following
LIKE
.
Therefore, in addition to traditional string searches, text fields can be searched with all of Metamorph's pattern matchers to find concepts, phrases, variable expressions, approximations, and numeric quantities expressed as text. These queries can contain multiple search items combining calls to different Metamorph pattern matchers. Intersections of such items can be located in proximity to one another within defined text units such as sentences, paragraphs, or the whole record.
It is this integration of Metamorph through the LIKE
clause which
brings together intelligent full text searching with relational
database technology. For instance, within the confines of the Texis
relational database, you can also issue queries to find the following:
Full use of the Metamorph query language is discussed in depth in
Chapter here. In this section we will concentrate on
simple examples to illustrate how the LIKE
clause can be used to
further qualify WHERE
.