sql - How to return different strings from a Boolean type in MySQL? -


If I have a column set in mySQL as Boolean, then a query value should be of the 0 1 .

Is it possible to do something

  SELECT 'bool_value' as "yes" or "no"  text "> 
  Select when bool_value   and then "yes" or "no" ed  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -