title: How to implement ternary conditional operator in MySQL
body: <p>I want to implement ternary conditional operator in MySQL. I have a table in which one field id exist. Its value may be null. I want to display <code>id</code> in ternary conditional format like this:</p>
  
  <pre><code>select id = id == null ? 0 : id;
  </code></pre>
  
  <p>Is it possible in MySQL?</p>