aboutsummaryrefslogtreecommitdiff
path: root/src/test/regress/sql/update.sql
blob: 64e0f8191414258b6891075e21b818ac7d1171bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--
-- UPDATE ... SET <col> = DEFAULT;
--

CREATE TABLE update_test (
    a   INT DEFAULT 10,
    b   INT
);

INSERT INTO update_test VALUES (5, 10);
INSERT INTO update_test VALUES (10, 15);

SELECT * FROM update_test;

UPDATE update_test SET a = DEFAULT, b = DEFAULT;

SELECT * FROM update_test;

DROP TABLE update_test;