mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-13 08:43:00 +00:00
* fix information schema case Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * disable -Wunused_result lint Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
29 lines
612 B
SQL
29 lines
612 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, engine
|
|
from information_schema.tables
|
|
where table_catalog = 'greptime'
|
|
and table_schema != 'public'
|
|
order by table_schema, table_name;
|
|
|
|
select table_catalog, table_schema, table_name, column_name, data_type, semantic_type
|
|
from information_schema.columns
|
|
where table_catalog = 'greptime'
|
|
and table_schema != 'public'
|
|
order by table_schema, table_name;
|
|
|
|
use public;
|