ClickHouse/tests/queries/0_stateless/01272_offset_without_limit.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
330 B
MySQL
Raw Normal View History

2020-05-11 05:48:19 +00:00
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;