Building A Select Statement - MACROMEDIA COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO Use Manual

Table of Contents

Advertisement

114
To change the type of SQL statement:
1
Open SQL Builder.
For instructions, see the opening SQL Builder procedure earlier in this section.
2
Select a statement type from the SQL Builder toolbar.

Building a SELECT statement

SQL SELECT statements let you specify data from which to build a recordset.
To create a SELECT statement:
1
Open SQL Builder.
For instructions, see the opening SQL Builder procedure earlier in this section.
2
Select a table to query.
3
Do one of the following:
4
Drag the columns to display onto the Column section of the Properties pane.
5
(Optional) Set additional query attributes in the Properties pane.
6
Save the query or insert it into a page.
To use a variable in a SQL WHERE clause:
1
Open SQL Builder.
For instructions, see the opening SQL Builder procedure earlier in this section.
2
In the Properties pane, click in the row for a column, in the Criteria column.
3
In the Select box, select a variable syntax.
4
Double-click on a variable placeholder name and enter a value.
To save a query:
1
Open SQL Builder.
For instructions, see the opening SQL Builder procedure earlier in this section.
2
On the Query toolbar, click the Save Query button.
3
In the dialog box that appears, enter a name for the query.
4
Click Save.
Saved queries are stored on the database server. They can be edited and used by
anyone who has access to the server.
To add a table to the query, right-click in the Table pane and select Add Table,
or click the Add Table button in the toolbar.
To create a join between tables, drag a column name between tables.
To delete a join, or to make it an inner or outer join, right-click the join and
select the appropriate command.
Chapter 8 Accessing Data Sources

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?

This manual is also suitable for:

Coldfusion studio 5

Table of Contents