mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
13 lines
499 B
SQL
13 lines
499 B
SQL
DROP TABLE IF EXISTS alter_update_00806;
|
|
|
|
CREATE TABLE alter_update_00806 (d Date, e Enum8('foo'=1, 'bar'=2)) Engine = MergeTree(d, (d), 8192);
|
|
INSERT INTO alter_update_00806 (d, e) VALUES ('2018-01-01', 'foo');
|
|
INSERT INTO alter_update_00806 (d, e) VALUES ('2018-01-02', 'bar');
|
|
|
|
ALTER TABLE alter_update_00806 UPDATE e = CAST('foo', 'Enum8(\'foo\' = 1, \'bar\' = 2)') WHERE d='2018-01-02' SETTINGS mutations_sync = 1;
|
|
|
|
|
|
SELECT e FROM alter_update_00806 ORDER BY d;
|
|
|
|
DROP TABLE alter_update_00806;
|