mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 05:12:54 +00:00
111 lines
1.5 KiB
Plaintext
111 lines
1.5 KiB
Plaintext
CREATE SCHEMA test_public_schema;
|
|
|
|
Affected Rows: 1
|
|
|
|
CREATE SCHEMA test_public_schema;
|
|
|
|
Error: 1004(InvalidArguments), Schema test_public_schema already exists
|
|
|
|
CREATE SCHEMA IF NOT EXISTS test_public_schema;
|
|
|
|
Affected Rows: 1
|
|
|
|
SHOW DATABASES LIKE '%public%';
|
|
|
|
+--------------------+
|
|
| Schemas |
|
|
+--------------------+
|
|
| public |
|
|
| test_public_schema |
|
|
+--------------------+
|
|
|
|
USE test_public_schema;
|
|
|
|
++
|
|
++
|
|
|
|
CREATE TABLE hello(i BIGINT TIME INDEX);
|
|
|
|
Affected Rows: 0
|
|
|
|
DROP TABLE hello;
|
|
|
|
Affected Rows: 1
|
|
|
|
CREATE TABLE hello(i BIGINT TIME INDEX);
|
|
|
|
Affected Rows: 0
|
|
|
|
SHOW TABLES FROM test_public_schema;
|
|
|
|
+--------+
|
|
| Tables |
|
|
+--------+
|
|
| hello |
|
|
+--------+
|
|
|
|
SHOW TABLES FROM public;
|
|
|
|
+--------+
|
|
| Tables |
|
|
+--------+
|
|
+--------+
|
|
|
|
INSERT INTO hello VALUES (2), (3), (4);
|
|
|
|
Affected Rows: 3
|
|
|
|
SELECT * FROM hello;
|
|
|
|
+---+
|
|
| i |
|
|
+---+
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
+---+
|
|
|
|
SHOW TABLES;
|
|
|
|
+--------+
|
|
| Tables |
|
|
+--------+
|
|
| hello |
|
|
+--------+
|
|
|
|
DROP TABLE hello;
|
|
|
|
Affected Rows: 1
|
|
|
|
DROP TABLE hello;
|
|
|
|
Error: 4001(TableNotFound), Table `greptime.test_public_schema.hello` not exist
|
|
|
|
SHOW TABLES FROM test_public_schema;
|
|
|
|
+--------+
|
|
| Tables |
|
|
+--------+
|
|
+--------+
|
|
|
|
SHOW TABLES FROM public;
|
|
|
|
+--------+
|
|
| Tables |
|
|
+--------+
|
|
+--------+
|
|
|
|
DROP SCHEMA test_public_schema;
|
|
|
|
Error: 1001(Unsupported), SQL statement is not supported: DROP SCHEMA test_public_schema;, keyword: SCHEMA
|
|
|
|
SELECT * FROM test_public_schema.hello;
|
|
|
|
Error: 4001(TableNotFound), Table `greptime.test_public_schema.hello` not exist
|
|
|
|
USE public;
|
|
|
|
++
|
|
++
|
|
|