mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
26 lines
599 B
MySQL
26 lines
599 B
MySQL
|
-- https://github.com/ClickHouse/ClickHouse/issues/11000
|
||
|
|
||
|
DROP TABLE IF EXISTS test_table_01;
|
||
|
DROP TABLE IF EXISTS test_table_02;
|
||
|
DROP TABLE IF EXISTS test_view_01;
|
||
|
|
||
|
SET allow_experimental_analyzer = 1;
|
||
|
|
||
|
CREATE TABLE test_table_01 (
|
||
|
column Int32
|
||
|
) ENGINE = Memory();
|
||
|
|
||
|
CREATE TABLE test_table_02 (
|
||
|
column Int32
|
||
|
) ENGINE = Memory();
|
||
|
|
||
|
CREATE VIEW test_view_01 AS
|
||
|
SELECT
|
||
|
t1.column,
|
||
|
t2.column
|
||
|
FROM test_table_01 AS t1
|
||
|
INNER JOIN test_table_02 AS t2 ON t1.column = t2.column;
|
||
|
|
||
|
DROP TABLE IF EXISTS test_table_01;
|
||
|
DROP TABLE IF EXISTS test_table_02;
|
||
|
DROP TABLE IF EXISTS test_view_01;
|