
Using Query Expressions
293
You use the following operators for numeric and date comparisons:
The following relational operators compare text and match words and parts of
words:
Operator
Description
=
Equals
>
Greater than
>=
Greater than or equal to
<
Less than
<=
Less than or equal to
Operator
Description
CONTAINS
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.”
MATCHES
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.”
STARTS
Selects documents by matching the character string you specify
with the starting characters of the values stored in a specific
document field.
ENDS
Selects documents by matching the character string you specify
with the ending characters of the values stored in a specific
document field.
SUBSTRING
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.
Содержание COLDFUSION 5-DEVELOPING
Страница 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Страница 58: ...38 Chapter 3 Querying a Database ...
Страница 134: ...114 Chapter 7 Updating Your Database ...
Страница 210: ...190 Chapter 10 Reusing Code ...
Страница 232: ...212 Chapter 11 Preventing and Handling Errors ...
Страница 238: ...218 Chapter 12 Using the Application Framework ...
Страница 262: ...242 Chapter 12 Using the Application Framework ...
Страница 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Страница 320: ...300 Chapter 15 Indexing and Searching Data ...
Страница 336: ...316 Chapter 16 Sending and Receiving E mail ...
Страница 374: ...354 Chapter 18 Interacting with Remote Servers ...