0

I have 2 queries and I want to use the <cfqueryparam> tag on it but am not sure how to do it for this query:

    <cfif isdefined("FORM.chk3g")>
        ThreeG IS NOT NULL AND
    </cfif>

    <cfif isdefined("FORM.chkpolyphonic")>
        ringtonetype like '%polyphonic%' AND
    </cfif>
4

1 回答 1

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>
于 2013-09-29T23:00:31.297 回答