MySQL Forums
Forum List  »  PHP

Re: Basic if-else question :(
Posted by: Peter Brawley
Date: August 25, 2014 09:32AM

> show chapter number when numbered and nothing when there aren't numbered

select if( cap+0 > 0, cap+0, '' ) from tablename

Options: ReplyQuote


Subject
Written By
Posted
August 24, 2014 09:42AM
Re: Basic if-else question :(
August 25, 2014 09:32AM


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.