Cfquery variable scope?

Hello folks,

I have recently been scoping all the variables in my hobby project; although, I am unsure what scope cfquery tag names fall into. would it be variables?

<cfquery name="variables.myQuery"> .....

<cfdump var="variables.myQuery"/>

inside a function, you could just use the local scope, i.e local.myquery

there’s some good info here

2 Likes