mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
17 lines
263 B
MySQL
17 lines
263 B
MySQL
|
DROP TABLE IF EXISTS primary;
|
||
|
|
||
|
CREATE TABLE primary
|
||
|
(
|
||
|
`primary` String
|
||
|
)
|
||
|
ENGINE = MergeTree
|
||
|
ORDER BY primary
|
||
|
settings min_bytes_for_wide_part=0,min_bytes_for_wide_part=0
|
||
|
AS
|
||
|
SELECT *
|
||
|
FROM numbers(1000);
|
||
|
|
||
|
select max(primary) from primary;
|
||
|
|
||
|
DROP TABLE primary;
|