Skip to content

The FROM Clause

Siim Kinks edited this page Nov 21, 2016 · 3 revisions

The SQL FROM clause allows for specifying which table to select data from. This also tells SqliteMagic what type of objects to parse and produce.

SQL SqliteMagic
SELECT * FROM AUTHOR
SELECT * FROM AUTHOR AS 'a'
  </code></pre>
</td>
<td style="padding:0; margin:0; border:none; width:50%;">
  <pre lang="java"><code class="language-java">import static com.siimkinks.sqlitemagic.AuthorTable.AUTHOR;

Select.from(AUTHOR);
Select.from(AUTHOR.as("a"))
  </code></pre>
</td>

  

See Next

Clone this wiki locally