mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-09 06:42:57 +00:00
* feat: implement drop multiple tables * fix: pass fmt and clippy checks * add: drop multiple sqlness test * update: accept review suggestions * update: accept reviem suggestion Co-authored-by: Weny Xu <wenymedia@gmail.com> * fix: pass clippy check --------- Co-authored-by: Weny Xu <wenymedia@gmail.com>
49 lines
923 B
SQL
49 lines
923 B
SQL
DROP TABLE IF EXISTS foo;
|
|
|
|
create table foo (
|
|
host string,
|
|
ts timestamp DEFAULT '2023-04-29 00:00:00+00:00',
|
|
cpu double default 0,
|
|
TIME INDEX (ts),
|
|
PRIMARY KEY(host)
|
|
) engine=mito;
|
|
|
|
DROP TABLE IF EXISTS foo;
|
|
|
|
DROP TABLE IF EXISTS foo;
|
|
|
|
DROP TABLE IF EXISTS foo, bar;
|
|
|
|
create table foo (
|
|
host string,
|
|
ts timestamp DEFAULT '2024-06-01 00:00:00+00:00',
|
|
cpu double default 0,
|
|
TIME INDEX (ts),
|
|
PRIMARY KEY(host)
|
|
) engine=mito;
|
|
|
|
DROP TABLE foo, bar;
|
|
|
|
SHOW TABLES;
|
|
|
|
DROP TABLE IF EXISTS foo, bar;
|
|
|
|
create table foo (
|
|
host string,
|
|
ts timestamp DEFAULT '2024-06-01 00:00:00+00:00',
|
|
cpu double default 0,
|
|
TIME INDEX (ts),
|
|
PRIMARY KEY(host)
|
|
) engine=mito;
|
|
|
|
create table bar (
|
|
host string,
|
|
ts timestamp DEFAULT '2024-06-01 00:00:00+00:00',
|
|
cpu double default 0,
|
|
TIME INDEX (ts),
|
|
PRIMARY KEY(host)
|
|
) engine=mito;
|
|
|
|
DROP TABLE foo, bar;
|
|
|