Basic Sql Syntax Elements - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

You interpret this statement as "Select the columns FirstName and LastName from the table
employees where the DeptID is 3".
In addition to with reading data from a table, you can write data to a table using the SQL
INSERT statement. The following statement adds a new row to the employees table:
INSERT INTO employees(EmpID, LastName, Firstname)
VALUES(51, 'Doe', 'John')

Basic SQL syntax elements

The following sections briefly describes the main SQL command elements.
Statements
A SQL statement always begins with a SQL verb. The following keywords identify commonly
used SQL verbs:
Keyword
SELECT
INSERT
UPDATE
DELETE
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
=
416
Chapter 19: Introduction to Databases and SQL
Description
Retrieves the specified records.
Adds a new row.
Changes values in the specified rows.
Removes the specified rows.
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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents