Sql Notes And Considerations - MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual

Table of Contents

Advertisement

Writing SQL
Statement clauses
Use the following keywords to refine SQL statements:
Keyword
FROM
WHERE
ORDER BY
GROUP BY
Operators
The following basic operators specify conditions and perform logical and numeric
functions:
Operator
AND
OR
NOT
LIKE
IN
BETWEEN
=
<>
<
>
<=
>=
+
-
/
*

SQL notes and considerations

When writing SQL in ColdFusion, keep the following guidelines in mind:
Description
Names the data tables for the operation
Sets one or more conditions for the operation
Sorts the result set in the specified order
Groups the result set by the specified select list items
Description
Both conditions must be met
At least one condition must be met
Exclude the condition following
Matches with a pattern
Matches with a list of values
Matches with a range of values
Equal to
Not equal to
Less than
Greater than
Less than or equal to
Greater than or equal to
Addition
Subtraction
Division
Multiplication
There is a lot more to SQL than what is covered here. It is a good idea to purchase
one or several SQL guides that you can refer to.
The data source, columns, and tables that you reference must exist in order to
perform a successful query.
27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents