Skip to content

Examples of SQL building part 2

Tobias edited this page Nov 13, 2019 · 3 revisions

Building a simple select

Select select = SelectUtils.buildSelectFromTable(new Table("mytable"));

select contains now select * from mytable.

Select select = SelectUtils.buildSelectFromTableAndExpressions(new Table("mytable"), new Column("a"), new Column("b"));

select contains now select a, b from mytable.