我有 2 个查询,我想在其上使用 <cfqueryparam>
标签,但不确定如何对此查询执行此操作:
<cfif isdefined("FORM.chk3g")>
ThreeG IS NOT NULL AND
</cfif>
<cfif isdefined("FORM.chkpolyphonic")>
ringtonetype like '%polyphonic%' AND
</cfif>
试试这样的事情
<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>