How can <cfqueryparam> affect performance for constants and null values?
问题 Consider the following: <cfquery name="aQuery" datasource="#aSource#"> SELECT aColumn FROM aTable WHERE bColumn = <cfqueryparam value="#aVariable#" cfsqltype="#aSqlType#" /> AND cColumn = 'someConstant' AND dColumn is null </cfquery> If I change AND cColumn = 'someConstant' to AND cColumn = <cfqueryparam value="someConstant" cfsqltype="#aSqlType#" /> Is there a potential performance improvement? Is there potential to hurt performance? What if I do the same (use cfqueryparam) with AND dColumn