Basic HTML version of Foils prepared May 3 1998

Foil 23 Creating a Page to Select Data

From Java Blend and Cold Fusion High Level Database Interfaces CPS616 Web Technologies -- Spring 98. by Chao Wei Ou


Syntax
<CFQUERY NAME="query_name"
DATASOURCE="ds_name"
USERNAME="username"
PASSWORD="password"
MAXROWS="number"
TIMEOUT="milliseconds"
DEBUG="yes/no">
SQL statements
</CFQUERY>
Example: (EmployeeSearch.cfm)
<CFQUERY NAME="EmployeeList" DATASOURCE=
"CF 3.0 Examples">
SELECT * FROM Employees
</CFQUERY>
CFML query tag (in a .cfm file on the server):



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998