mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
8 lines
429 B
SQL
8 lines
429 B
SQL
drop table if exists lc_perm;
|
|
create table lc_perm (val UInt32, str LowCardinality(String)) engine = MergeTree order by val;
|
|
insert into lc_perm values (1, 'w'), (10, 'x'), (3, 'y'), (8, 'z'), (4, 'w'), (6, 'y'), (11, 'x'), (0, 'z'), (12, 'a'), (13, 'b'), (14, 'c'), (15, 'd'), (16, 'e'), (17, 'f'), (18, 'g'), (19, 'h');
|
|
select * from lc_perm;
|
|
select str from lc_perm where val < 12 order by str;
|
|
drop table if exists lc_perm;
|
|
|