我想做的是
<cfloop array="#LOCAL.someArray" index="LOCAL.aString">
<cfset LOCAL.queryName = "uniqueQueryName_" & LOCAL.aString />
<cfquery name="#LOCAL.queryName#" datasource="db" cachedwithin="#CreateTimeSpan(1,0,0,0)#">
SELECT count(*) AS c FROM someTable
</cfquery>
<cfdump var="#LOCAL.queryName#" />
</cfloop>
这是可能的,还是有更好的方法来做到这一点?
编辑
这适用于<cfloop query="LOCAL.queryName">
但不是当我尝试做<cfset ArrayAppend(LOCAL.returnArray, LOCAL.queryName.c) />