MySQL Forums
Forum List  »  MySQL Query Browser

Re: IF ELSE query
Posted by: irek kordirko
Date: March 10, 2012 12:44PM

Use a CASE expression

  CASE WHEN a = 'yes'
       THEN A
       ELSE B
FROM tablename

Options: ReplyQuote

Written By
March 10, 2012 01:54AM
March 10, 2012 02:04AM
Re: IF ELSE query
March 10, 2012 12:44PM

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.