title: MySQL: Select from coma separated list / list as table? "SELECT a FROM (1, 2, 3)"
body: <p>Is it possible to do something like this (obviously this syntax does not work):</p>
  
  <pre><code>SELECT a FROM (1, 2, 3)
  </code></pre>
  
  <p>to get this:</p>
  
  <pre><code>| a |
  +---+
  | 1 |
  | 2 |
  | 3 |
  </code></pre>
  
  <p>?</p>
  
  <p>That is I want to make rows from coma separated list, without using any table, or at least without creating table in db (maybe this is possible using something like temporary table?).</p>
  
  <p>Maybe it is possible to get column of given values without using select, that is using some other sql statment? If it is not possible in MySQL, but possible in some other SQL it still would be interesting to know.</p>