mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
341a6c51d6
* Add StorageSystemISTables.cpp/.h * Another attempt * Columns and Views * Add information schema db and fix information schema 'tables' table * fix build * remove copy-paste, add views to system tables * add test * fix * fix_tests Co-authored-by: Damir Petrov <petrovdamir2235@gmail.com> Co-authored-by: Damir Petrov <0442a403@verstehen.sas.yp-c.yandex.net> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
20 lines
1.1 KiB
SQL
20 lines
1.1 KiB
SQL
show tables from information_schema;
|
|
SHOW TABLES FROM INFORMATION_SCHEMA;
|
|
|
|
create table t (n UInt64, f Float32, s String, fs FixedString(42), d Decimal(9, 6)) engine=Memory;
|
|
create view v (n Nullable(Int32), f Float64) as select n, f from t;
|
|
create materialized view mv engine=Null as select * from system.one;
|
|
create temporary table tmp (d Date, dt DateTime, dtms DateTime64(3));
|
|
|
|
-- FIXME #28687
|
|
select * from information_schema.schemata where schema_name ilike 'information_schema';
|
|
-- SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA=currentDatabase() OR TABLE_SCHEMA='') AND TABLE_NAME NOT LIKE '%inner%';
|
|
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE (table_schema=currentDatabase() OR table_schema='') AND table_name NOT LIKE '%inner%';
|
|
select * from information_schema.views where table_schema=currentDatabase();
|
|
-- SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE (TABLE_SCHEMA=currentDatabase() OR TABLE_SCHEMA='') AND TABLE_NAME NOT LIKE '%inner%';
|
|
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE (table_schema=currentDatabase() OR table_schema='') AND table_name NOT LIKE '%inner%';
|
|
|
|
drop table t;
|
|
drop view v;
|
|
drop view mv;
|