Is there a way to consolidate a query into a variable? I have to use a query several times on different pages and I need to know if there is a way to use the query as a variable instead?
Something like
<cfset query=<cfquery datasource="A" name="A">
Select * From Table Where This=#that#
</cfquery>
Thanks
Something like
<cfset query=<cfquery datasource="A" name="A">
Select * From Table Where This=#that#
</cfquery>
Thanks