mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
14 lines
330 B
MySQL
14 lines
330 B
MySQL
|
DROP TABLE IF EXISTS offset_without_limit;
|
||
|
|
||
|
CREATE TABLE offset_without_limit (
|
||
|
value UInt32
|
||
|
) Engine = MergeTree()
|
||
|
PRIMARY KEY value
|
||
|
ORDER BY value;
|
||
|
|
||
|
INSERT INTO offset_without_limit SELECT * FROM system.numbers LIMIT 50;
|
||
|
|
||
|
SELECT value FROM offset_without_limit ORDER BY value OFFSET 5;
|
||
|
|
||
|
DROP TABLE offset_without_limit;
|