mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
CLICKHOUSE-3211 add tests
This commit is contained in:
parent
e8ebcc4d48
commit
6e461213bb
@ -0,0 +1,6 @@
|
||||
1
|
||||
2
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
19
dbms/tests/queries/0_stateless/00687_top_and_offset.sql
Normal file
19
dbms/tests/queries/0_stateless/00687_top_and_offset.sql
Normal file
@ -0,0 +1,19 @@
|
||||
DROP TABLE IF EXISTS test.test;
|
||||
|
||||
CREATE TABLE test.test(val Int64) engine = Memory;
|
||||
|
||||
INSERT INTO test.test VALUES (1);
|
||||
INSERT INTO test.test VALUES (2);
|
||||
INSERT INTO test.test VALUES (3);
|
||||
INSERT INTO test.test VALUES (4);
|
||||
INSERT INTO test.test VALUES (5);
|
||||
INSERT INTO test.test VALUES (6);
|
||||
INSERT INTO test.test VALUES (7);
|
||||
INSERT INTO test.test VALUES (8);
|
||||
INSERT INTO test.test VALUES (9);
|
||||
|
||||
SELECT TOP 2 * FROM test.test;
|
||||
SELECT TOP (2) * FROM test.test;
|
||||
SELECT * FROM test.test LIMIT 2 OFFSET 2;
|
||||
|
||||
DROP TABLE test.test;
|
Loading…
Reference in New Issue
Block a user