mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-20 06:50:37 +00:00
* feat: add support for information_schema.columns * feat: remove information_schema from its view * Update src/catalog/src/information_schema.rs Co-authored-by: LFC <bayinamine@gmail.com> * fix: error on table data type * test: correct sqlness test for information schema * test: add information_schema.columns sqlness tests --------- Co-authored-by: LFC <bayinamine@gmail.com>
31 lines
597 B
SQL
31 lines
597 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
|
|
from information_schema.columns
|
|
where table_catalog = 'greptime'
|
|
and table_schema != 'public'
|
|
order by table_schema, table_name;
|
|
|
|
use
|
|
public;
|