Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Afan Pasalic (afanafan.net)
Date: Wed May 14 2008 - 11:09:50 CDT
that's what I was looking for!
ewen fortune wrote:
> Hi Afan,
> You can use concat_ws
> CONCAT() returns NULL if any argument is NULL.
> CONCAT_WS() does not skip empty strings. However, it does skip any
> NULL values after the separator argument
> On Wed, May 14, 2008 at 5:53 PM, Afan Pasalic <afanafan.net> wrote:
>> I have query
>> SELECT CONCAT(r.first_name, ' ', r.last_name, '\n', r.organization, '\n',
>> r.title, '\n', a.address1, '\n', a.city, ', ', a.state, ' ', a.zip, '\n',
>> FROM registrants r, addresses a
>> WHERE r.reg_id=121
>> if any of columns has value (e.g. title) NULL, I'll get as result 0
>> If query doesn't have concat() - it works fine.
>> Why is that?
>> MySQL General Mailing List
>> For list archives: http://lists.mysql.com/mysql
>> To unsubscribe:
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql