mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
23 lines
666 B
SQL
23 lines
666 B
SQL
DROP TABLE IF EXISTS join_table_mutation;
|
|
|
|
CREATE TABLE join_table_mutation(id Int32, name String) ENGINE = Join(ANY, LEFT, id);
|
|
|
|
INSERT INTO join_table_mutation select number, toString(number) from numbers(100);
|
|
|
|
SELECT count(1) FROM join_table_mutation;
|
|
|
|
SELECT name FROM join_table_mutation WHERE id = 10;
|
|
|
|
ALTER TABLE join_table_mutation DELETE WHERE id = 10;
|
|
|
|
SELECT count(1) FROM join_table_mutation;
|
|
|
|
SELECT name FROM join_table_mutation WHERE id = 10;
|
|
|
|
INSERT INTO join_table_mutation VALUES (10, 'm10');
|
|
|
|
SELECT name FROM join_table_mutation WHERE id = 10;
|
|
|
|
ALTER TABLE join_table_mutation DELETE WHERE id % 2 = 0;
|
|
|
|
SELECT count(1) FROM join_table_mutation; |