Files
greptimedb/tests/cases/standalone/catalog/schema.sql
LFC af935671b2 feat: support "use" in GRPC requests (#922)
* feat: support "use catalog and schema"(behave like the "use" in MySQL) in GRPC requests

* fix: rebase develop
2023-02-02 20:02:56 +08:00

32 lines
483 B
SQL

CREATE SCHEMA test_public_schema;
CREATE SCHEMA test_public_schema;
SHOW DATABASES LIKE '%public%';
USE test_public_schema;
CREATE TABLE hello(i BIGINT TIME INDEX);
DROP TABLE hello;
CREATE TABLE hello(i BIGINT TIME INDEX);
INSERT INTO hello VALUES (2), (3), (4);
SELECT * FROM hello;
SHOW TABLES;
DROP TABLE hello;
DROP TABLE hello;
SHOW TABLES FROM test_public_schema;
SHOW TABLES FROM public;
DROP SCHEMA test_public_schema;
SELECT * FROM test_public_schema.hello;