Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

How to use variable in cfQuery where?

$
0
0

I have this variable:

 

strURL = siteURL not like '/training%' and siteURL not like '/webadmin%'

 

Now in my cfquery:

 

<cfquery dbtype="query" name="qryContentFiltered" result="tmpResult">

  select *   from qryContent where #strURL#

</cfquery>

 

And it failed to execute. I put a log after the cfquery and it failed to generate anything too.


Viewing all articles
Browse latest Browse all 5794

Trending Articles