title: Mysql Generated Column Compued By Conditions On Other Columns
body: <p>Is it possible to create a generated MySQL column that runs a condition on other columns?</p>
  
  <p>For example:
  column "a" - type boolean
  column "b" - type date
  generate column "c" that implements the logic:</p>
  
  <pre><code>if (a == false) || (a == true &amp;&amp; b &lt; NOW()) {
      return true;
  } else {
      return false;
  }
  </code></pre>