MySQL Forums
Forum List  »  Newbie

Re: Combining Several fields into one.
Posted by: Donavon Lerman
Date: August 18, 2004 03:02PM

Ah Ha. I figured it out.

SELECT CONCAT_WS('-',IF(north= 'yes','north',''),IF(south= 'yes','south',''),IF(east= 'yes','east',''), IF(west= 'yes','west','')) as direction
FROM table1



Options: ReplyQuote


Subject
Written By
Posted
Re: Combining Several fields into one.
August 18, 2004 03:02PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.