Re: Oracle NVL equivalent for MySQL?

From: Date: Wed, 04 Apr 2001 10:13:06 +0000
Subject: Re: Oracle NVL equivalent for MySQL?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47006@lists.php.net to get a copy of this message
"Dominick Vansevenant" <dv@mobyus.com> wrote: > Maybe a bit offtopic, but is there an equivalent for the NVL function in > Oracle for MySQL? > > NVL is a function that returns a given result when a value is null You do know there's a MySQL list, don't you? There's no such beast in MySQL, but you can do this: IF( my_field IS NULL, your_expression, my_field) -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

« previous php.general (#47006) next »