query of queries simple example :
<!--- Main query which will be used later. --->
<cfquery name="qry_apply_list" datasource="#application.odbc#">
/** Comments */
select jobno,count(jobno) cnt
from apply_list
group by jobno
</cfquery>
<!--- Query from main query.
SELECT cnt
from qry_apply_list
where jobno = 'mailman'
</cfquery>
IMPORTANT:
Make sure that there is NO SQL comments( "--" and "/* */") in the second query or you will see error message "
- Apr 18 Fri 2008 10:10
[Coldfusion] Query of Queries
close
全站熱搜
留言列表
發表留言