MySQL Forums
Forum List  »  PHP

Re: ternary operator inside a query
Posted by: Dimitris Papageorgiou
Date: February 25, 2015 05:55AM

I am considering using IF...

There is a problem though...in both IF and IFNULL an expression is needed in case the first expression is false or NULL(depending on which one is used...
In my case I do not want an alternative expression in the query...but just nothing.

In other words something must be there or not...
The above control structures assume that there always be an expression in the query something I do not want...

Options: ReplyQuote


Subject
Written By
Posted
Re: ternary operator inside a query
February 25, 2015 05:55AM


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.