You probably want 
WHERE dateUpdated IS NULL 

'' is an empty string - only appropriate for string data types.



> -----Original Message-----
> From: David K [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 23 July 2003 11:52 a.m.
> To: CF-Talk
> Subject: SQL gurus please help
> 
> Trying to do a simple select query that
> filters out records against a date column.
> I want all records with an empty value in
> the date column.
> 
> Here's my query...
> 
> <cfquery name="getData" datasource="cfDS" dbtype="ODBC">
> SELECT     *
> FROM     tblCustomers
> WHERE     dateUpdated <> ''
> </cfquery>
> 
> ...which blows up with this error;
> ===================================
> ODBC Error Code = 22005 (Error in assignment)
> Data type mismatch in criteria expression.
> ===================================
> 
> I'm assuming it's choking on the quotes.
> So what's the correct syntax?
> 
> 
> 
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to