Whatever message this page gives is out now! Go check it out!
Variable | Description |
RecordCount | The total number of records returned by the query. |
ColumnList | A comma-delimited list of the query columns, in alphabetical order. |
SQL | The SQL statement executed. |
Cached | Whether the query was cached. |
SQLParameters | Ordered array of cfqueryparam values. |
ExecutionTime | Cumulative time required to process the query, in milliseconds. |
<cfset Emp_ID = 1>
<cfquery name="EmpList" datasource="cfdocexamples" result="tmpResult">
SELECT FirstName, LastName, Salary, Contract
FROM Employee
WHERE Emp_ID = <cfqueryPARAM value = "#Emp_ID#"
CFSQLType = "CF_SQL_INTEGER">
</cfquery>
<cfoutput query="EmpList">
#EmpList.FirstName#, #EmpList.LastName#, #EmpList.Salary#, #EmpList.Contract#<br>
</cfoutput> <br>
<cfoutput>
The query returned #tmpResult.RecordCount# records.<br>
The query columns are:#tmpResult.ColumnList#.<br>
The SQL is #tmpResult.SQL#.<br>
Whether the query was cached: #tmpResult.Cached#.<br>
Query execution time: #tmpResult.ExecutionTime#.<br>
</cfoutput>
<cfdump var="#tmpResult.SQLParameters#">Code | Description |
<cfoutput> | Displays what follows. |
The query returned | Displays the text "The query returned". |
#EmpList.RecordCount# | Displays the number of records retrieved in the EmpList query. |
records. | Displays the text "records." |
</cfoutput> | Ends the cfoutput block. |