mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
12 lines
334 B
SQL
12 lines
334 B
SQL
DROP TABLE IF EXISTS t;
|
|
|
|
CREATE TABLE t(`id` String, `dealer_id` String) ENGINE = MergeTree() ORDER BY id SETTINGS index_granularity = 8192;
|
|
insert into t(id, dealer_id) values('1','2');
|
|
SELECT * FROM t;
|
|
SET mutations_sync = 1;
|
|
ALTER TABLE t DELETE WHERE id in (select id from t as tmp);
|
|
SELECT '---';
|
|
SELECT * FROM t;
|
|
|
|
DROP TABLE t;
|