MySQL Forums
Forum List  »  InnoDB

Re: "if" condition in SELECT ?
Posted by: Dmitriy Menshikov
Date: May 15, 2008 10:05AM

or

SELECT IFNULL(field1, field2) FROM table1;

field1 - field that checks

Options: ReplyQuote


Subject
Views
Written By
Posted
27060
September 07, 2007 08:38AM
16648
September 07, 2007 08:51AM
11133
September 07, 2007 10:09AM
Re: "if" condition in SELECT ?
6084
May 15, 2008 10:05AM


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.