public interface UpdateFromStep<R extends Record> extends UpdateWhereStep<R>
Update
's DSL API.
Example:
DSLContext create = DSL.using(configuration);
create.update(table)
.set(field1, value1)
.set(field2, value2)
.where(field1.greaterThan(100))
.execute();
XYZ*Step
types directly from client code
It is usually not recommended to reference any XYZ*Step
types
directly from client code, or assign them to local variables. When writing
dynamic SQL, creating a statement's components dynamically, and passing them
to the DSL API statically is usually a better choice. See the manual's
section about dynamic SQL for details: https://www.jooq.org/doc/latest/manual/sql-building/dynamic-sql.
Drawbacks of referencing the XYZ*Step
types directly:
Modifier and Type | Method and Description |
---|---|
UpdateWhereStep<R> |
from(Collection<? extends TableLike<?>> tables)
Add a
FROM clause to the query. |
UpdateWhereStep<R> |
from(Name name)
Add a
FROM clause to the query. |
UpdateWhereStep<R> |
from(SQL sql)
Add a
FROM clause to the query. |
UpdateWhereStep<R> |
from(String sql)
Add a
FROM clause to the query. |
UpdateWhereStep<R> |
from(String sql,
Object... bindings)
Add a
FROM clause to the query. |
UpdateWhereStep<R> |
from(String sql,
QueryPart... parts)
Add a
FROM clause to the query. |
UpdateWhereStep<R> |
from(TableLike<?>... table)
Add a
FROM clause to the query. |
UpdateWhereStep<R> |
from(TableLike<?> table)
Add a
FROM clause to the query. |
where, where, where, where, where, where, where, where, where, whereExists, whereNotExists
returning, returning, returning, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult, returningResult
bind, bind, cancel, close, execute, executeAsync, executeAsync, getBindValues, getParam, getParams, getSQL, getSQL, getSQL, isExecutable, keepStatement, queryTimeout
attach, configuration, detach
@Support(value={AURORA_POSTGRES,HANA,INGRES,POSTGRES,SQLSERVER,SYBASE}) UpdateWhereStep<R> from(TableLike<?> table)
FROM
clause to the query.@Support(value={AURORA_POSTGRES,HANA,INGRES,POSTGRES,SQLSERVER,SYBASE}) UpdateWhereStep<R> from(TableLike<?>... table)
FROM
clause to the query.@Support(value={AURORA_POSTGRES,HANA,INGRES,POSTGRES,SQLSERVER,SYBASE}) UpdateWhereStep<R> from(Collection<? extends TableLike<?>> tables)
FROM
clause to the query.@Support(value={AURORA_POSTGRES,HANA,INGRES,POSTGRES,SQLSERVER,SYBASE}) @PlainSQL UpdateWhereStep<R> from(SQL sql)
FROM
clause to the query.
NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
DSL.table(SQL)
,
SQL
@Support(value={AURORA_POSTGRES,HANA,INGRES,POSTGRES,SQLSERVER,SYBASE}) @PlainSQL UpdateWhereStep<R> from(String sql)
FROM
clause to the query.
NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
DSL.table(String)
,
SQL
@Support(value={AURORA_POSTGRES,HANA,INGRES,POSTGRES,SQLSERVER,SYBASE}) @PlainSQL UpdateWhereStep<R> from(String sql, Object... bindings)
FROM
clause to the query.
NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
@Support(value={AURORA_POSTGRES,HANA,INGRES,POSTGRES,SQLSERVER,SYBASE}) @PlainSQL UpdateWhereStep<R> from(String sql, QueryPart... parts)
FROM
clause to the query.
NOTE: When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!
@Support(value={AURORA_POSTGRES,HANA,INGRES,POSTGRES,SQLSERVER,SYBASE}) UpdateWhereStep<R> from(Name name)
FROM
clause to the query.DSL.table(Name)
Copyright © 2019. All rights reserved.