Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for correct term for is null string

Status
Not open for further replies.

kupe

Technical User
Sep 23, 2002
376
These won't persuade mysql.

UPDATE table SET label = 'margarine' WHERE label = ' ';

UPDATE table SET label = 'margarine' WHERE label IS NULL;

UPDATE table SET label = 'margarine' WHERE LENGTH(label) <=1;

Be grateful to know what will.
 
All those are perfectly valid SQL DML statements. If they aren't doing what you think they should, then I think the label is not set to what you think it is.
 
Thanks, Eric. You're right - of course. Too much haste and I overlooked something incredibly simple. Sorry. Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top