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): |