Files
greptimedb/tests/cases/standalone/catalog/schema.sql
LFC 8149932bad feat: local catalog drop table (#913)
* feat: local catalog drop table

* Update src/catalog/src/local/manager.rs

Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com>

* Update src/catalog/src/local/manager.rs

Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com>

* fix: resolve PR comments

---------

Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com>
2023-01-31 14:44:03 +08:00

32 lines
522 B
SQL

CREATE SCHEMA test_schema;
SHOW DATABASES;
CREATE TABLE test_schema.hello(i BIGINT TIME INDEX);
DROP TABLE test_schema.hello;
DROP SCHEMA test_schema;
CREATE SCHEMA test_schema;
CREATE TABLE test_schema.hello(i BIGINT TIME INDEX);
INSERT INTO test_schema.hello VALUES (2), (3), (4);
SELECT * FROM test_schema.hello;
SHOW TABLES;
SHOW TABLES FROM test_schema;
DROP TABLE test_schema.hello;
DROP TABLE test_schema.hello;
SHOW TABLES FROM test_schema;
DROP SCHEMA test_schema;
SELECT * FROM test_schema.hello;