2003-08-26 20:32:23 +02:00
|
|
|
--
|
|
|
|
-- 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;
|
|
|
|
|
2005-04-07 17:23:06 +02:00
|
|
|
DROP TABLE update_test;
|