Это будет
update my_table
set my_column = my_value,
my_column2 = my_value --> this
where my_conditions;
Потому что, если вы установите его (как подсказывает один из ответов) на
my_column2 = my_column
, вы обновите MY_COLUMN2
до * Значение 1009 * old MY_COLUMN
. Посмотрите:
SQL> create table test
2 (my_column number,
3 my_column2 number
4 );
Table created.
SQL> insert into test values (100, 200);
1 row created.
SQL> update test set
2 my_column = 300, --> "300" represents "MY_VALUE"
3 my_column2 = my_column; --> it won't be set to 300, but to 100
1 row updated.
SQL> select * from test;
MY_COLUMN MY_COLUMN2
---------- ----------
300 100
SQL>