mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
27 lines
582 B
MySQL
27 lines
582 B
MySQL
|
DROP TABLE IF EXISTS test_log;
|
||
|
CREATE TABLE test_log
|
||
|
(
|
||
|
`crypto_name` String,
|
||
|
`trade_date` Date
|
||
|
)
|
||
|
ENGINE = Log;
|
||
|
|
||
|
INSERT INTO test_log (crypto_name, trade_date) VALUES ('abc', '2021-01-01'), ('def', '2022-02-02');
|
||
|
|
||
|
TRUNCATE TABLE test_log;
|
||
|
SELECT count() FROM test_log;
|
||
|
|
||
|
DROP TABLE IF EXISTS test_log;
|
||
|
CREATE TABLE test_log
|
||
|
(
|
||
|
`crypto_name` String,
|
||
|
`trade_date` Date
|
||
|
)
|
||
|
ENGINE = StripeLog;
|
||
|
|
||
|
INSERT INTO test_log (crypto_name, trade_date) VALUES ('abc', '2021-01-01'), ('def', '2022-02-02');
|
||
|
|
||
|
TRUNCATE TABLE test_log;
|
||
|
SELECT count() FROM test_log;
|
||
|
DROP TABLE test_log;
|