note 38618 added to function.is-null
| From: | michael at cannonbose dot com | Date: | Tue, 30 Dec 2003 14:42:58 +0000 |
| Subject: | note 38618 added to function.is-null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62679@lists.php.net to get a copy of this message | ||
Regarding avoidance of NULLs in your MySQL queries, why not use IS NULL and IS NOT NULL in your
WHERE clauses.
SELECT *
FROM someDatabase
WHERE someAttribute IS NOT NULL
Cheers,
Michael
----
Manual Page -- http://www.php.net/manual/en/function.is-null.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38618
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38618&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38618&report=yes
Search -- http://master.php.net/manage/user-notes.php