mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
36 lines
1002 B
SQL
36 lines
1002 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() FROM join_table_mutation;
|
|
|
|
SELECT name FROM join_table_mutation WHERE id = 10;
|
|
|
|
ALTER TABLE join_table_mutation DELETE WHERE id = 10;
|
|
|
|
SELECT count() 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;
|
|
|
|
ALTER TABLE join_table_mutation UPDATE name = 'some' WHERE 1; -- {serverError NOT_IMPLEMENTED}
|
|
|
|
SELECT count() FROM join_table_mutation;
|
|
|
|
ALTER TABLE join_table_mutation DELETE WHERE name IN ('1', '2', '3', '4');
|
|
|
|
SELECT count() FROM join_table_mutation;
|
|
|
|
ALTER TABLE join_table_mutation DELETE WHERE 1;
|
|
|
|
SELECT count() FROM join_table_mutation;
|
|
|
|
DROP TABLE join_table_mutation;
|