public enum EOldNewQualifier extends Enum<EOldNewQualifier>
In Oracle 26c, the RETURNING clause can include OLD or NEW qualifiers to capture pre-update or post-update column values respectively.
Example:
UPDATE employees SET salary = salary * 1.1 RETURNING OLD salary, NEW salary, last_name BULK COLLECT INTO v_old_salaries, v_new_salaries, v_names;
| Enum Constant and Description |
|---|
new_
NEW qualifier - returns post-update column values
|
none
No qualifier specified - default behavior (post-update values for UPDATE, pre-delete values for DELETE)
|
old
OLD qualifier - returns pre-update/pre-delete column values
|
| Modifier and Type | Method and Description |
|---|---|
static EOldNewQualifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EOldNewQualifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EOldNewQualifier none
public static final EOldNewQualifier old
public static final EOldNewQualifier new_
public static EOldNewQualifier[] values()
for (EOldNewQualifier c : EOldNewQualifier.values()) System.out.println(c);
public static EOldNewQualifier valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null