mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-16 04:50:38 +00:00
* feat: basic information schema * show information schema only for current catalog * fix: fragile tests
25 lines
386 B
SQL
25 lines
386 B
SQL
create
|
|
database my_db;
|
|
|
|
use
|
|
my_db;
|
|
|
|
create table foo
|
|
(
|
|
ts bigint time index
|
|
);
|
|
|
|
select table_name
|
|
from information_schema.tables
|
|
where table_schema = 'my_db'
|
|
order by table_name;
|
|
|
|
select table_catalog, table_schema, table_name, table_type
|
|
from information_schema.tables
|
|
where table_catalog = 'greptime'
|
|
and table_schema != 'public'
|
|
order by table_schema, table_name;
|
|
|
|
use
|
|
public;
|