- All Superinterfaces:
FieldOrRow,Fields,Named,QueryPart,Row,SelectField<Record>,SelectFieldOrAsterisk,Serializable,Typed<Record>
Row value expressions are mainly useful for use in predicates, when comparing several values in one go, which can be more elegant than expanding the row value expression predicate in other equivalent syntaxes. This is especially true for non-equality predicates. For instance, the following two predicates are equivalent in SQL:
(A, B) > (X, Y)
(A > X) OR (A = X AND B > Y)
Example:
// Assuming import static org.jooq.impl.DSL.*;
using(configuration)
.select()
.from(CUSTOMER)
.where(row(CUSTOMER.FIRST_NAME, CUSTOMER.LAST_NAME).in(
select(ACTOR.FIRST_NAME, ACTOR.LAST_NAME).from(ACTOR)
))
.fetch();
Note: Not all databases support row value expressions, but many row value expression operations can be emulated on all databases. See relevant row value expression method Javadocs for details.
Instances can be created using DSL.row(Object...) and overloads.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescription@NotNull BetweenAndStepNCheck if this row value expression is within a range of two other row value expressions.@NotNull BetweenAndStepNCheck if this row value expression is within a range of two other row value expressions.@NotNull BetweenAndStepNCheck if this row value expression is within a range of two records.@NotNull ConditionCheck if this row value expression is within a range of two records.@NotNull BetweenAndStepNCheck if this row value expression is within a range of two other row value expressions.@NotNull ConditionCheck if this row value expression is within a range of two other row value expressions.@NotNull BetweenAndStepNbetweenSymmetric(Object... minValues)Check if this row value expression is within a symmetric range of two other row value expressions.@NotNull BetweenAndStepNbetweenSymmetric(Field<?>... minValues)Check if this row value expression is within a symmetric range of two other row value expressions.@NotNull BetweenAndStepNbetweenSymmetric(Record minValue)Check if this row value expression is within a symmetric range of two records.@NotNull ConditionbetweenSymmetric(Record minValue, Record maxValue)Check if this row value expression is within a symmetric range of two records.@NotNull BetweenAndStepNbetweenSymmetric(RowN minValue)Check if this row value expression is within a symmetric range of two other row value expressions.@NotNull ConditionbetweenSymmetric(RowN minValue, RowN maxValue)Check if this row value expression is within a symmetric range of two other row value expressions.@NotNull Conditioncompare(Comparator comparator, Object... values)Compare this row value expression with another row value expression using a dynamic comparator.@NotNull Conditioncompare(Comparator comparator, Field<?>... values)Compare this row value expression with another row value expression using a dynamic comparator.@NotNull Conditioncompare(Comparator comparator, QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect using a dynamic comparator.@NotNull Conditioncompare(Comparator comparator, Record record)Compare this row value expression with a record using a dynamic comparator.@NotNull Conditioncompare(Comparator comparator, RowN row)Compare this row value expression with another row value expression using a dynamic comparator.@NotNull Conditioncompare(Comparator comparator, Select<? extends Record> select)Compare this row value expression with a subselect using a dynamic comparator.@NotNull ConditionCompare this row value expression with another row value expression for equality.@NotNull ConditionCompare this row value expression with another row value expression for equality.@NotNull Conditioneq(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for equality.@NotNull ConditionCompare this row value expression with a record for equality.@NotNull ConditionCompare this row value expression with another row value expression for equality.@NotNull ConditionCompare this row value expression with a subselect for equality.@NotNull ConditionCompare this row value expression with another row value expression for equality.@NotNull ConditionCompare this row value expression with another row value expression for equality.@NotNull Conditionequal(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for equality.@NotNull ConditionCompare this row value expression with a record for equality.@NotNull ConditionCompare this row value expression with another row value expression for equality.@NotNull ConditionCompare this row value expression with a subselect for equality.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull Conditionge(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditionCompare this row value expression with a record for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionCompare this row value expression with a subselect for order.@NotNull ConditiongreaterOrEqual(Object... values)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterOrEqual(Field<?>... values)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterOrEqual(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditiongreaterOrEqual(Record record)Compare this row value expression with a record for order.@NotNull ConditiongreaterOrEqual(RowN row)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterOrEqual(Select<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditiongreaterThan(Object... values)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterThan(Field<?>... values)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterThan(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditiongreaterThan(Record record)Compare this row value expression with a record for order.@NotNull ConditiongreaterThan(RowN row)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterThan(Select<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull Conditiongt(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditionCompare this row value expression with a record for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionCompare this row value expression with a subselect for order.@NotNull Conditionin(Collection<? extends RowN> rows)Compare this row value expression with a set of row value expressions for equality.@NotNull ConditionCompare this row value expression with a set of records for equality.@NotNull ConditionCompare this row value expression with a set of records for equality.@NotNull ConditionCompare this row value expression with a set of row value expressions for equality.@NotNull ConditionCompare this row value expression with a subselect for equality.@NotNull ConditionisDistinctFrom(Object... values)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisDistinctFrom(Field<?>... values)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisDistinctFrom(Record record)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisDistinctFrom(RowN row)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisDistinctFrom(Select<? extends Record> select)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisNotDistinctFrom(Object... values)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisNotDistinctFrom(Field<?>... values)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisNotDistinctFrom(Record record)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisNotDistinctFrom(RowN row)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisNotDistinctFrom(Select<? extends Record> select)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull Conditionle(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditionCompare this row value expression with a record for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionCompare this row value expression with a subselect for order.@NotNull ConditionlessOrEqual(Object... values)Compare this row value expression with another row value expression for order.@NotNull ConditionlessOrEqual(Field<?>... values)Compare this row value expression with another row value expression for order.@NotNull ConditionlessOrEqual(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditionlessOrEqual(Record record)Compare this row value expression with a record for order.@NotNull ConditionlessOrEqual(RowN row)Compare this row value expression with another row value expression for order.@NotNull ConditionlessOrEqual(Select<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionlessThan(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditionCompare this row value expression with a record for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionCompare this row value expression with a subselect for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull Conditionlt(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.@NotNull ConditionCompare this row value expression with a record for order.@NotNull ConditionCompare this row value expression with another row value expression for order.@NotNull ConditionCompare this row value expression with a subselect for order.@NotNull ConditionCompare this row value expression with another row value expression for non-equality.@NotNull ConditionCompare this row value expression with another row value expression for non-equality.@NotNull Conditionne(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for non-equality.@NotNull ConditionCompare this row value expression with a record for non-equality.@NotNull ConditionCompare this row value expression with another row value expression for non-equality.@NotNull ConditionCompare this row value expression with a subselect for non-equality.@NotNull BetweenAndStepNnotBetween(Object... minValues)Check if this row value expression is not within a range of two other row value expressions.@NotNull BetweenAndStepNnotBetween(Field<?>... minValues)Check if this row value expression is not within a range of two other row value expressions.@NotNull BetweenAndStepNnotBetween(Record minValue)Check if this row value expression is within a range of two records.@NotNull ConditionnotBetween(Record minValue, Record maxValue)Check if this row value expression is within a range of two records.@NotNull BetweenAndStepNnotBetween(RowN minValue)Check if this row value expression is not within a range of two other row value expressions.@NotNull ConditionnotBetween(RowN minValue, RowN maxValue)Check if this row value expression is not within a range of two other row value expressions.@NotNull BetweenAndStepNnotBetweenSymmetric(Object... minValues)Check if this row value expression is not within a symmetric range of two other row value expressions.@NotNull BetweenAndStepNnotBetweenSymmetric(Field<?>... minValues)Check if this row value expression is not within a symmetric range of two other row value expressions.@NotNull BetweenAndStepNnotBetweenSymmetric(Record minValue)Check if this row value expression is not within a symmetric range of two records.@NotNull ConditionnotBetweenSymmetric(Record minValue, Record maxValue)Check if this row value expression is not within a symmetric range of two records.@NotNull BetweenAndStepNnotBetweenSymmetric(RowN minValue)Check if this row value expression is not within a symmetric range of two other row value expressions.@NotNull ConditionnotBetweenSymmetric(RowN minValue, RowN maxValue)Check if this row value expression is not within a symmetric range of two other row value expressions.@NotNull ConditionCompare this row value expression with another row value expression for.@NotNull ConditionCompare this row value expression with another row value expression for non-equality.@NotNull ConditionnotEqual(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for non-equality.@NotNull ConditionCompare this row value expression with a record for non-equality@NotNull ConditionCompare this row value expression with another row value expression for non-equality.@NotNull ConditionCompare this row value expression with a subselect for non-equality.@NotNull ConditionnotIn(Collection<? extends RowN> rows)Compare this row value expression with a set of row value expressions for equality.@NotNull ConditionCompare this row value expression with a set of records for non-equality.@NotNull ConditionCompare this row value expression with a set of records for equality.@NotNull ConditionCompare this row value expression with a set of row value expressions for equality.@NotNull ConditionCompare this row value expression with a subselect for non-equality.@NotNull StatementAssign a value to this set of variables.@NotNull StatementAssign a value to this set of variables.@NotNull StatementAssign a value to this set of variables.@NotNull StatementAssign a value to this set of variables.@NotNull StatementAssign a value to this set of variables.Methods inherited from interface org.jooq.Fields
dataType, dataType, dataType, dataTypes, field, field, field, field, field, field, field, field, field, field, fields, fields, fields, fields, fields, fieldsRow, fieldStream, indexOf, indexOf, indexOf, type, type, type, typesMethods inherited from interface org.jooq.Named
getComment, getCommentPart, getName, getQualifiedName, getUnqualifiedNameMethods inherited from interface org.jooq.SelectField
as, as, asMethods inherited from interface org.jooq.Typed
getBinding, getConverter, getDataType, getDataType, getType
-
Method Details
-
compare
Compare this row value expression with another row value expression using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported -
compare
Compare this row value expression with a record using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported -
compare
Compare this row value expression with another row value expression using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported -
compare
Compare this row value expression with another row value expression using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported -
compare
@NotNull @Support @NotNull Condition compare(Comparator comparator, Select<? extends Record> select)Compare this row value expression with a subselect using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported -
compare
@NotNull @Support @NotNull Condition compare(Comparator comparator, QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported -
equal
Compare this row value expression with another row value expression for equality.Row equality comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B) = (1, 2)is equivalent toA = 1 AND B = 2 -
equal
Compare this row value expression with a record for equality.- See Also:
equal(RowN)
-
equal
Compare this row value expression with another row value expression for equality.- See Also:
equal(RowN)
-
equal
Compare this row value expression with another row value expression for equality.- See Also:
equal(RowN)
-
equal
Compare this row value expression with a subselect for equality.- See Also:
equal(RowN)
-
equal
Compare this row value expression with a subselect for equality. -
eq
Compare this row value expression with another row value expression for equality.- See Also:
equal(RowN)
-
eq
Compare this row value expression with a record for equality.- See Also:
equal(RowN)
-
eq
Compare this row value expression with another row value expression for equality.- See Also:
equal(RowN)
-
eq
Compare this row value expression with another row value expression for equality.- See Also:
equal(RowN)
-
eq
Compare this row value expression with a subselect for equality.- See Also:
equal(RowN)
-
eq
Compare this row value expression with a subselect for equality. -
notEqual
Compare this row value expression with another row value expression for non-equality.Row non-equality comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B) <> (1, 2)is equivalent toNOT(A = 1 AND B = 2) -
notEqual
Compare this row value expression with a record for non-equality- See Also:
notEqual(RowN)
-
notEqual
Compare this row value expression with another row value expression for. non-equality- See Also:
notEqual(RowN)
-
notEqual
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(RowN)
-
notEqual
Compare this row value expression with a subselect for non-equality.- See Also:
notEqual(RowN)
-
notEqual
Compare this row value expression with a subselect for non-equality. -
ne
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(RowN)
-
ne
Compare this row value expression with a record for non-equality.- See Also:
notEqual(RowN)
-
ne
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(RowN)
-
ne
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(RowN)
-
ne
Compare this row value expression with a subselect for non-equality.- See Also:
notEqual(RowN)
-
ne
Compare this row value expression with a subselect for non-equality. -
isDistinctFrom
Compare this row value expression with another row value expression for distinctness. -
isDistinctFrom
Compare this row value expression with another row value expression for distinctness. -
isDistinctFrom
Compare this row value expression with another row value expression for distinctness. -
isDistinctFrom
Compare this row value expression with another row value expression for distinctness. -
isDistinctFrom
Compare this row value expression with another row value expression for distinctness. -
isNotDistinctFrom
Compare this row value expression with another row value expression for distinctness. -
isNotDistinctFrom
Compare this row value expression with another row value expression for distinctness. -
isNotDistinctFrom
Compare this row value expression with another row value expression for distinctness. -
isNotDistinctFrom
Compare this row value expression with another row value expression for distinctness. -
isNotDistinctFrom
Compare this row value expression with another row value expression for distinctness. -
lessThan
Compare this row value expression with another row value expression for order.Row order comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B, C) < (1, 2, 3)is equivalent toA < 1 OR (A = 1 AND B < 2) OR (A = 1 AND B = 2 AND C < 3) -
lessThan
Compare this row value expression with a record for order.- See Also:
lessThan(RowN)
-
lessThan
Compare this row value expression with another row value expression for order.- See Also:
lessThan(RowN)
-
lessThan
Compare this row value expression with another row value expression for order.- See Also:
lessThan(RowN)
-
lessThan
Compare this row value expression with a subselect for order.- See Also:
lessThan(RowN)
-
lessThan
Compare this row value expression with a subselect for order. -
lt
Compare this row value expression with another row value expression for order.- See Also:
lessThan(RowN)
-
lt
Compare this row value expression with a record for order.- See Also:
lessThan(RowN)
-
lt
Compare this row value expression with another row value expression for order.- See Also:
lessThan(RowN)
-
lt
Compare this row value expression with another row value expression for order.- See Also:
lessThan(RowN)
-
lt
Compare this row value expression with a subselect for order.- See Also:
lessThan(RowN)
-
lt
Compare this row value expression with a subselect for order. -
lessOrEqual
Compare this row value expression with another row value expression for order.Row order comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B) <= (1, 2)is equivalent toA < 1 OR (A = 1 AND B < 2) OR (A = 1 AND B = 2) -
lessOrEqual
Compare this row value expression with a record for order.- See Also:
lessOrEqual(RowN)
-
lessOrEqual
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(RowN)
-
lessOrEqual
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(RowN)
-
lessOrEqual
Compare this row value expression with a subselect for order.- See Also:
lessOrEqual(RowN)
-
lessOrEqual
Compare this row value expression with a subselect for order. -
le
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(RowN)
-
le
Compare this row value expression with a record for order.- See Also:
lessOrEqual(RowN)
-
le
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(RowN)
-
le
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(RowN)
-
le
Compare this row value expression with a subselect for order.- See Also:
lessOrEqual(RowN)
-
le
Compare this row value expression with a subselect for order. -
greaterThan
Compare this row value expression with another row value expression for order.Row order comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B, C) > (1, 2, 3)is equivalent toA > 1 OR (A = 1 AND B > 2) OR (A = 1 AND B = 2 AND C > 3) -
greaterThan
Compare this row value expression with a record for order.- See Also:
greaterThan(RowN)
-
greaterThan
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(RowN)
-
greaterThan
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(RowN)
-
greaterThan
Compare this row value expression with a subselect for order.- See Also:
greaterThan(RowN)
-
greaterThan
Compare this row value expression with a subselect for order. -
gt
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(RowN)
-
gt
Compare this row value expression with a record for order.- See Also:
greaterThan(RowN)
-
gt
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(RowN)
-
gt
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(RowN)
-
gt
Compare this row value expression with a subselect for order.- See Also:
greaterThan(RowN)
-
gt
Compare this row value expression with a subselect for order. -
greaterOrEqual
Compare this row value expression with another row value expression for order.Row order comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B) >= (1, 2)is equivalent toA > 1 OR (A = 1 AND B > 2) OR (A = 1 AND B = 2) -
greaterOrEqual
Compare this row value expression with a record for order.- See Also:
greaterOrEqual(RowN)
-
greaterOrEqual
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(RowN)
-
greaterOrEqual
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(RowN)
-
greaterOrEqual
Compare this row value expression with a subselect for order.- See Also:
greaterOrEqual(RowN)
-
greaterOrEqual
Compare this row value expression with a subselect for order. -
ge
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(RowN)
-
ge
Compare this row value expression with a record for order.- See Also:
greaterOrEqual(RowN)
-
ge
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(RowN)
-
ge
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(RowN)
-
ge
Compare this row value expression with a subselect for order.- See Also:
greaterOrEqual(RowN)
-
ge
Compare this row value expression with a subselect for order. -
between
Check if this row value expression is within a range of two other row value expressions.- See Also:
between(RowN, RowN)
-
between
Check if this row value expression is within a range of two other row value expressions.- See Also:
between(RowN, RowN)
-
between
Check if this row value expression is within a range of two other row value expressions.- See Also:
between(RowN, RowN)
-
between
Check if this row value expression is within a range of two records.- See Also:
between(RowN, RowN)
-
between
Check if this row value expression is within a range of two other row value expressions.This is the same as calling
between(minValue).and(maxValue)The expression
A BETWEEN B AND Cis equivalent to the expressionA >= B AND A <= Cfor those SQL dialects that do not properly support theBETWEENpredicate for row value expressions -
between
Check if this row value expression is within a range of two records.This is the same as calling
between(minValue).and(maxValue)- See Also:
between(RowN, RowN)
-
betweenSymmetric
Check if this row value expression is within a symmetric range of two other row value expressions.- See Also:
betweenSymmetric(RowN, RowN)
-
betweenSymmetric
Check if this row value expression is within a symmetric range of two other row value expressions.- See Also:
betweenSymmetric(RowN, RowN)
-
betweenSymmetric
Check if this row value expression is within a symmetric range of two other row value expressions.- See Also:
betweenSymmetric(RowN, RowN)
-
betweenSymmetric
Check if this row value expression is within a symmetric range of two records.- See Also:
betweenSymmetric(RowN, RowN)
-
betweenSymmetric
Check if this row value expression is within a symmetric range of two other row value expressions.This is the same as calling
betweenSymmetric(minValue).and(maxValue)The expression
A BETWEEN SYMMETRIC B AND Cis equivalent to the expression(A >= B AND A <= C) OR (A >= C AND A <= B)for those SQL dialects that do not properly support theBETWEENpredicate for row value expressions -
betweenSymmetric
Check if this row value expression is within a symmetric range of two records.This is the same as calling
betweenSymmetric(minValue).and(maxValue)- See Also:
betweenSymmetric(RowN, RowN)
-
notBetween
Check if this row value expression is not within a range of two other row value expressions.- See Also:
between(RowN, RowN)
-
notBetween
Check if this row value expression is not within a range of two other row value expressions.- See Also:
notBetween(RowN, RowN)
-
notBetween
Check if this row value expression is not within a range of two other row value expressions.- See Also:
notBetween(RowN, RowN)
-
notBetween
Check if this row value expression is within a range of two records.- See Also:
notBetween(RowN, RowN)
-
notBetween
Check if this row value expression is not within a range of two other row value expressions.This is the same as calling
notBetween(minValue).and(maxValue)The expression
A NOT BETWEEN B AND Cis equivalent to the expressionA < B OR A > Cfor those SQL dialects that do not properly support theBETWEENpredicate for row value expressions -
notBetween
Check if this row value expression is within a range of two records.This is the same as calling
notBetween(minValue).and(maxValue)- See Also:
notBetween(RowN, RowN)
-
notBetweenSymmetric
Check if this row value expression is not within a symmetric range of two other row value expressions.- See Also:
notBetweenSymmetric(RowN, RowN)
-
notBetweenSymmetric
Check if this row value expression is not within a symmetric range of two other row value expressions.- See Also:
notBetweenSymmetric(RowN, RowN)
-
notBetweenSymmetric
Check if this row value expression is not within a symmetric range of two other row value expressions.- See Also:
notBetweenSymmetric(RowN, RowN)
-
notBetweenSymmetric
Check if this row value expression is not within a symmetric range of two records.- See Also:
notBetweenSymmetric(RowN, RowN)
-
notBetweenSymmetric
Check if this row value expression is not within a symmetric range of two other row value expressions.This is the same as calling
notBetweenSymmetric(minValue).and(maxValue)The expression
A NOT BETWEEN SYMMETRIC B AND Cis equivalent to the expression(A < B OR A > C) AND (A < C OR A > B)for those SQL dialects that do not properly support theBETWEENpredicate for row value expressions -
notBetweenSymmetric
Check if this row value expression is not within a symmetric range of two records.This is the same as calling
notBetweenSymmetric(minValue).and(maxValue)- See Also:
notBetweenSymmetric(RowN, RowN)
-
in
Compare this row value expression with a set of row value expressions for equality.Row IN predicates can be emulated in those databases that do not support such predicates natively:
(A, B) IN ((1, 2), (3, 4))is equivalent to((A, B) = (1, 2)) OR ((A, B) = (3, 4)), which is equivalent to(A = 1 AND B = 2) OR (A = 3 AND B = 4)Note that generating dynamic SQL with arbitrary-length
INpredicates can cause cursor cache contention in some databases that use unique SQL strings as a statement identifier (e.g.SQLDialect.ORACLE). In order to prevent such problems, you could useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:INpredicates on temporary tablesINpredicates on unnested array bind variables
- See Also:
Rows.toRowList(Function, Function)
-
in
Compare this row value expression with a set of records for equality.Row IN predicates can be emulated in those databases that do not support such predicates natively:
(A, B) IN ((1, 2), (3, 4))is equivalent to((A, B) = (1, 2)) OR ((A, B) = (3, 4)), which is equivalent to(A = 1 AND B = 2) OR (A = 3 AND B = 4)Note that generating dynamic SQL with arbitrary-length
INpredicates can cause cursor cache contention in some databases that use unique SQL strings as a statement identifier (e.g.SQLDialect.ORACLE). In order to prevent such problems, you could useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:INpredicates on temporary tablesINpredicates on unnested array bind variables
-
in
Compare this row value expression with a set of row value expressions for equality.Note that generating dynamic SQL with arbitrary-length
INpredicates can cause cursor cache contention in some databases that use unique SQL strings as a statement identifier (e.g.SQLDialect.ORACLE). In order to prevent such problems, you could useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:INpredicates on temporary tablesINpredicates on unnested array bind variables
-
in
Compare this row value expression with a set of records for equality.Note that generating dynamic SQL with arbitrary-length
INpredicates can cause cursor cache contention in some databases that use unique SQL strings as a statement identifier (e.g.SQLDialect.ORACLE). In order to prevent such problems, you could useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:INpredicates on temporary tablesINpredicates on unnested array bind variables
- See Also:
in(Collection)
-
in
Compare this row value expression with a subselect for equality.- See Also:
in(Collection)
-
notIn
Compare this row value expression with a set of row value expressions for equality.Row NOT IN predicates can be emulated in those databases that do not support such predicates natively:
(A, B) NOT IN ((1, 2), (3, 4))is equivalent toNOT(((A, B) = (1, 2)) OR ((A, B) = (3, 4))), which is equivalent toNOT((A = 1 AND B = 2) OR (A = 3 AND B = 4))Note that generating dynamic SQL with arbitrary-length
NOT INpredicates can cause cursor cache contention in some databases that use unique SQL strings as a statement identifier (e.g.SQLDialect.ORACLE). In order to prevent such problems, you could useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:NOT INpredicates on temporary tablesNOT INpredicates on unnested array bind variables
- See Also:
Rows.toRowList(Function, Function)
-
notIn
Compare this row value expression with a set of records for equality.Row NOT IN predicates can be emulated in those databases that do not support such predicates natively:
(A, B) NOT IN ((1, 2), (3, 4))is equivalent toNOT(((A, B) = (1, 2)) OR ((A, B) = (3, 4))), which is equivalent toNOT((A = 1 AND B = 2) OR (A = 3 AND B = 4))Note that generating dynamic SQL with arbitrary-length
NOT INpredicates can cause cursor cache contention in some databases that use unique SQL strings as a statement identifier (e.g.SQLDialect.ORACLE). In order to prevent such problems, you could useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:NOT INpredicates on temporary tablesNOT INpredicates on unnested array bind variables
-
notIn
Compare this row value expression with a set of row value expressions for equality.Note that generating dynamic SQL with arbitrary-length
NOT INpredicates can cause cursor cache contention in some databases that use unique SQL strings as a statement identifier (e.g.SQLDialect.ORACLE). In order to prevent such problems, you could useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:NOT INpredicates on temporary tablesNOT INpredicates on unnested array bind variables
-
notIn
Compare this row value expression with a set of records for non-equality.Note that generating dynamic SQL with arbitrary-length
NOT INpredicates can cause cursor cache contention in some databases that use unique SQL strings as a statement identifier (e.g.SQLDialect.ORACLE). In order to prevent such problems, you could useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:NOT INpredicates on temporary tablesNOT INpredicates on unnested array bind variables
- See Also:
notIn(Collection)
-
notIn
Compare this row value expression with a subselect for non-equality.- See Also:
notIn(Collection)
-
set
@NotNull @Support({AURORA_POSTGRES,DB2,EXASOL,HANA,HSQLDB,INFORMIX,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER}) @NotNull Statement set(RowN row)Assign a value to this set of variables. -
set
@NotNull @Support({AURORA_POSTGRES,DB2,EXASOL,HANA,HSQLDB,INFORMIX,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER}) @NotNull Statement set(Record record)Assign a value to this set of variables. -
set
@NotNull @Support({AURORA_POSTGRES,DB2,EXASOL,HANA,HSQLDB,INFORMIX,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER}) @NotNull Statement set(Object... values)Assign a value to this set of variables. -
set
@NotNull @Support({AURORA_POSTGRES,DB2,EXASOL,HANA,HSQLDB,INFORMIX,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER}) @NotNull Statement set(Field<?>... values)Assign a value to this set of variables. -
set
@NotNull @Support({AURORA_POSTGRES,DB2,HANA,HSQLDB,INFORMIX,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER}) @NotNull Statement set(Select<? extends Record> value)Assign a value to this set of variables.
-