NULL VALUE
| From: | Fire Marshal's Office) | Date: | Mon, 03 Jan 2005 17:40:52 +0000 |
| Subject: | NULL VALUE | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-37953@lists.php.net to get a copy of this message | ||
My "status" column in my Employee table should have two values "Active" and
"Inactive". Right now all the active employees have the value "Active" and
the rest have a NULL value.
Why is it that the following commands do nothing?
UPDATE EMPLOYEE SET STATUS='Inactive' where STATUS != 'Active';
UPDATE EMPLOYEE SET STATUS='Inactive' where STATUS <> 'Active';
UPDATE EMPLOYEE SET STATUS='Inactive' where STATUS IS NULL';
UPDATE EMPLOYEE SET STATUS='Inactive' where STATUS = '';
UPDATE EMPLOYEE SET STATUS='Inactive' where STATUS = NULL;
- Matthew