Quite possibly since 0 could also mean false depending on your comparison operator. For instance, using a generic if statement, these two would both evaluate to false:
if(0)
if(null)


You should be very specific when checking for NULL.
WHERE field IS NOT NULL
or
WHERE field IS NULL

Also, you may want to look into the NULL safe comparison operator:
http://dev.mysql.com/doc/mysql/en/Comparison_Operators.html


On Nov 16, 2004, at 7:17 AM, Stuart Felenstein wrote:

I have a query statement set up for record returns
based on various where statements.  The select
statement consists of a number of joins.  One of those
joins includes a field that is marked "no null".
Recently I did a mass insertion into the table.  Into
this particular no null field were place 0's (zeroes).
 Now the queries are not running correctly.  I'm
wondering if it's possible that these 0's could be
effecting the query ?

Thank you,
Stuart

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577


-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to