| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Karl Pielorz | Date: | March 12 1999 9:20am |
| Subject: | Re: MySQL and NULL entires | ||
| View as plain text | |||
Mike Machado wrote:
> update account set billgroup = "1" where billgroup = "NULL";
Any test with NULL in, is by definition FALSE, therefore the correct way of
doing the above is:
update account set billgroup = 1 where billgroup IS NULL;
Confusing, but you'll get the hang of it... :-) (IS NULL is a MySQL test for
NULL, that returns TRUE if the item being tested 'is null')
Regards,
Karl
| Thread | ||
|---|---|---|
| • MySQL and NULL entires | Mike Machado | 12 Mar |
| • Re: MySQL and NULL entires | Sasha Pachev | 12 Mar |
| • Re: MySQL and NULL entires | Thimble Smith | 12 Mar |
| • Re: MySQL and NULL entires | Chris | 12 Mar |
| • Re: MySQL and NULL entires | Christian Mack | 12 Mar |
| • Re: MySQL and NULL entires | Karl Pielorz | 12 Mar |
| • Re: MySQL and NULL entires | Ed Carp | 12 Mar |
| • Searching for CEOs against software patents" | Jonas Norrman | 6 Oct |
| • Re: MySQL quota problem | Arjen Lentz | 21 Jan |
| • Re: MySQL quota problem | Heikki Tuuri | 21 Jan |
