mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-06 07:32:27 +00:00
37 lines
484 B
MySQL
37 lines
484 B
MySQL
|
DROP TABLE IF EXISTS t1;
|
||
|
DROP TABLE IF EXISTS t2;
|
||
|
DROP TABLE IF EXISTS t3;
|
||
|
|
||
|
CREATE TABLE t1
|
||
|
(
|
||
|
`n` Int8
|
||
|
)
|
||
|
ENGINE = Memory
|
||
|
COMMENT 'this is a temtorary table';
|
||
|
|
||
|
CREATE TABLE t2
|
||
|
(
|
||
|
`n` Int8
|
||
|
)
|
||
|
ENGINE = MergeTree
|
||
|
ORDER BY n
|
||
|
COMMENT 'this is a MergeTree table';
|
||
|
|
||
|
CREATE TABLE t3
|
||
|
(
|
||
|
`n` Int8
|
||
|
)
|
||
|
ENGINE = Log
|
||
|
COMMENT 'this is a Log table';
|
||
|
|
||
|
SELECT
|
||
|
database,
|
||
|
name,
|
||
|
comment
|
||
|
FROM system.tables
|
||
|
WHERE name IN ('t1', 't2', 't3');
|
||
|
|
||
|
DROP TABLE t1;
|
||
|
DROP TABLE t2;
|
||
|
DROP TABLE t3;
|