我有2个查询,我想在其上使用<cfqueryparam>
标记,但我不确定如何为此查询执行此操作:
<cfif isdefined("FORM.chk3g")>
ThreeG IS NOT NULL AND
</cfif>
<cfif isdefined("FORM.chkpolyphonic")>
ringtonetype like '%polyphonic%' AND
</cfif>
答案 0 :(得分:0)
尝试这样的事情
<cfif isdefined("FORM.chk3g")>
ThreeG IS NOT NULL AND
</cfif>
<cfif isdefined("FORM.chkpolyphonic")>
ringtonetype like <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="%polyphonic%"> AND
</cfif>