public interface UpdateReturningStep<R extends Record>
Update
's DSL API.
Example:
DSLContext create = DSL.using(configuration);
TableRecord<?> record =
create.update(table)
.set(field1, value1)
.set(field2, value2)
.returning(field1)
.fetchOne();
This implemented differently for every dialect:
UPDATE .. RETURNING
clausesSELECT .. FROM FINAL TABLE (UPDATE ...)
Modifier and Type | Method and Description |
---|---|
UpdateResultStep<R> |
returning()
Configure the
UPDATE statement to return all fields in
R . |
UpdateResultStep<R> |
returning(Collection<? extends Field<?>> fields)
Configure the
UPDATE statement to return a list of fields in
R . |
UpdateResultStep<R> |
returning(Field<?>... fields)
Configure the
UPDATE statement to return a list of fields in
R . |
@Support(value={DB2,FIREBIRD,ORACLE,POSTGRES}) UpdateResultStep<R> returning()
UPDATE
statement to return all fields in
R
.UpdateResultStep
@Support(value={DB2,FIREBIRD,ORACLE,POSTGRES}) UpdateResultStep<R> returning(Field<?>... fields)
UPDATE
statement to return a list of fields in
R
.fields
- Fields to be returnedUpdateResultStep
@Support(value={DB2,FIREBIRD,ORACLE,POSTGRES}) UpdateResultStep<R> returning(Collection<? extends Field<?>> fields)
UPDATE
statement to return a list of fields in
R
.fields
- Fields to be returnedUpdateResultStep
Copyright © 2017. All Rights Reserved.