NULL attribute of CFQUERYPARAM
I'm not sure if I'm using the NULL attribute of cfqueryparam correctly.
I already know that I just need to get records where the status is NULL. In the DB this column is set to allow NULL
So I can do this:
<cfquery name="aa" datasource="#application.dsn#>
SELECT column1, column2
FROM mytable
Where status IS NULL
</cfquery>
When using cfqueryparam, can I do it this way:
<cfquery name="aa" datasource="#application.dsn#>
SELECT column1, column2
FROM mytable
Where status = <cfqueryparam cfsqltype="cf_sql_varchar" value=" " NULL="yes">
</cfquery>
Please advice
