mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
5 lines
193 B
SQL
5 lines
193 B
SQL
drop table if exists `table`;
|
|
create table `table` (val Int32) engine = MergeTree order by val;
|
|
insert into `table` values (-2), (0), (2);
|
|
select count() from `table` where toUInt64(val) == 0;
|