mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
20 lines
1.1 KiB
MySQL
20 lines
1.1 KiB
MySQL
|
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;
|