我想将一组查询合并到一个查询中
我试过这个
<cfquery name="MergedData" dbtype="query">
<cfloop from="1" to="#arrayLen(arData)#" index="k">
SELECT *
FROM arData[k]
<cfif k LT ArrayLen(arData)>UNION</cfif>
</cfloop>
ORDER BY EID
</cfquery>
我收到一个看起来像的错误
<br><b>Query Of Queries syntax error.</b><br> Encountered "[k].