1UPDATE table
2SET column1 = expression1,
3 column2 = expression2,
4 ...
5 column_n = expression_n
6[WHERE conditions];
1UPDATE mytable t -- Update using WITH statement
2SET value3 = (
3 WITH comp AS (
4 SELECT id, value1
5 FROM mytable t
6 WHERE value2 > 10
7 )
8 SELECT c.value1
9 FROM comp c
10 WHERE c.id = t.id
11);
1{
2 UPDATE table-Name [[AS] correlation-Name]
3 SET column-Name = Value
4 [ , column-Name = Value} ]*
5 [WHERE clause] |
6 UPDATE table-Name
7 SET column-Name = Value
8 [ , column-Name = Value ]*
9 WHERE CURRENT OF
10}