[ILUG-Webdev] MySQL NULL problem

kverens kverens at contactjuggling.org
Thu Dec 4 12:51:49 GMT 2003


I have a line of SQL which I thought was simple:
update photographers set state=town where state is null and 
country='Ireland'; 

this returns 0 changes. 

strangely, the below returns 187 results:
select * from photographers where state is null and country='Ireland'; 

town is plain text, as is state and country. 

any ideas what I'm doing wrong? 

Kae



More information about the Webdev mailing list