WithAsManyStepsWithImplpublic interface UpdateFirstStep
| Modifier and Type | Method | Description |
|---|---|---|
UpdateAsStep |
update(java.lang.String name) |
UPDATE statement.
|
UpdateAsStep |
update(Expression name) |
UPDATE statement.
|
UpdateAsStep |
updateOnly(java.lang.String name) |
UPDATE statement.
|
UpdateAsStep |
updateOnly(Expression name) |
UPDATE statement.
|
UpdateAsStep update(java.lang.String name)
// UPDATE book AS b SET author = 'Andrew' WHERE b.id = 1 RETURNING max(price) AS price
update("book")
.as("b")
.set("author", asConstant("Andrew"))
.where("b.id", "=", 1)
.returning(asName("max(price)").as("price"))
.sql();
name - name of the table ot updateUpdateAsStep update(Expression name)
// UPDATE book AS b SET author = 'Andrew' WHERE b.id = 1 RETURNING max(price) AS price
update(asName("book"))
.as("b")
.set("author", asConstant("Andrew"))
.where("b.id", "=", 1)
.returning(asName("max(price)").as("price"))
.sql();
name - name of the table ot updateUpdateAsStep updateOnly(java.lang.String name)
// UPDATE ONLY book AS b SET author = 'Andrew' WHERE b.id = 1 RETURNING max(price) AS price
updateOnly("book")
.as("b")
.set("author", asConstant("Andrew"))
.where("b.id", "=", 1)
.returning(asName("max(price)").as("price"))
.sql();
name - name of the table ot updateUpdateAsStep updateOnly(Expression name)
// UPDATE ONLY book AS b SET author = 'Andrew' WHERE b.id = 1 RETURNING max(price) AS price
updateOnly(asName("book"))
.as("b")
.set("author", asConstant("Andrew"))
.where("b.id", "=", 1)
.returning(asName("max(price)").as("price"))
.sql();
name - name of the table ot update