MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual page 313

Table of Contents

Advertisement

Using Query Expressions
You use the following operators for numeric and date comparisons:
Operator
=
>
>=
<
<=
The following relational operators compare text and match words and parts of
words:
Operator
CONTAINS
MATCHES
STARTS
ENDS
SUBSTRING
Description
Equals
Greater than
Greater than or equal to
Less than
Less than or equal to
Description
Selects documents by matching the word or phrase you specify
with the values stored in a specific document field. Documents are
selected only if the search elements specified appear in the same
sequential and contiguous order in the field value; for example,
"god" matches "God in heaven," "a god among men," or "good god"
but not "godliness," or "gods."
Selects documents by matching the query string with values stored
in a specific document field. Documents are selected only if the
search elements specified match the field value exactly. If a partial
match is found, a document is not selected; for example, "god"
matches a document field containing only "god" and does not
match "gods," "godliness," or "a god among men."
Selects documents by matching the character string you specify
with the starting characters of the values stored in a specific
document field.
Selects documents by matching the character string you specify
with the ending characters of the values stored in a specific
document field.
Selects documents by matching the query string you specify with
any portion of the strings in a specific document field; for example,
"god" matches "godliness," "a god among men," "godforsaken," and
so on.
293

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents