Answered
cfqueryparam-testing for null
select * from table1 where id=<cfqueryparam value="#id#" cfsqltype="CF_SQL_CHAR" maxlength="30"> and date1 is not null
In that query, is cfqueryparam needed for date1 eventhough a value isn't being used ?
select * from table1 where id=<cfqueryparam value="#id#" cfsqltype="CF_SQL_CHAR" maxlength="30"> and date1 is not null
In that query, is cfqueryparam needed for date1 eventhough a value isn't being used ?
<cfqueryparam null="true" /> should be all that you need to do.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.