| Interface | Description |
|---|---|
| Sql |
Some SQL keyw0rods.
|
| Class | Description |
|---|---|
| SqlBuilder |
PrepareStatement builder support
How to use a SELECT
SqlBuilder sql = new SqlBuilder()
.select("t.id", "t.name")
.from("testTable t")
.where()
.andCondition("t.name", "=", "Test")
.andCondition("t.created", ">=", someDate);
for (ResultSet rs : sql.executeSelect(dbConnection)) {
int id = rs.getInt(1);
String name = rs.getString(2);
}
How to use a INSERT
|
Copyright 2019-2022, Pavel Ponec