Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Re: How to get a placeholder to keep the current column value?by giulienk (Curate) |
on Oct 27, 2003 at 08:07 UTC ( [id://302354]=note: print w/replies, xml ) | Need Help?? |
It seems that MySQL's COALESCE allows to input NULL values as if all the values are NULL, NULL will be returned. I quote from MySQL Manual: COALESCE(list) Returns first non-NULL element in list: mysql> SELECT COALESCE(NULL,1); -> 1 mysql> SELECT COALESCE(NULL,NULL,NULL); -> NULL UPDATE: ops, i wasn't careful enough to check the solution offered. In that case NULL won't be returned so Jenda's assumption is right.
In Section
Seekers of Perl Wisdom
|
|