mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 21:32:58 +00:00
test: add "numbers" table in distributed mode (#1374)
This commit is contained in:
39
tests/cases/standalone/common/catalog/schema.sql
Normal file
39
tests/cases/standalone/common/catalog/schema.sql
Normal file
@@ -0,0 +1,39 @@
|
||||
CREATE SCHEMA test_public_schema;
|
||||
|
||||
CREATE SCHEMA test_public_schema;
|
||||
|
||||
CREATE SCHEMA IF NOT EXISTS 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);
|
||||
|
||||
SHOW TABLES FROM test_public_schema;
|
||||
|
||||
SHOW TABLES FROM public;
|
||||
|
||||
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;
|
||||
|
||||
USE public;
|
||||
Reference in New Issue
Block a user