mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-29 21:36:45 +03:00
26 lines
531 B
Plaintext
26 lines
531 B
Plaintext
USE tpch1;
|
|
drop table if exists test;
|
|
drop view if exists test_v;
|
|
create table test (test1 numeric,test2 varchar(20)) engine=columnstore;
|
|
create view test_v as select * from test;
|
|
insert into test values (1,'data1');
|
|
insert into test values (2,'data2');
|
|
insert into test values (3,'data3');
|
|
select T.test1,T.test2 from test_v T;
|
|
test1 test2
|
|
1 data1
|
|
2 data2
|
|
3 data3
|
|
select T.test1,T.test2 from test_v t;
|
|
test1 test2
|
|
1 data1
|
|
2 data2
|
|
3 data3
|
|
select T.test1 from (select * from test_v)T;
|
|
test1
|
|
1
|
|
2
|
|
3
|
|
drop table test;
|
|
drop view test_v;
|