ClickHouse/tests/queries/0_stateless/00002_system_numbers.sql

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

15 lines
832 B
MySQL
Raw Normal View History

2020-06-20 11:29:01 +00:00
SET send_logs_level = 'fatal';
2018-08-14 21:32:49 +00:00
2018-07-27 17:19:22 +00:00
SELECT * FROM system.numbers LIMIT 3;
SELECT sys_num.number FROM system.numbers AS sys_num WHERE number > 2 LIMIT 2;
SELECT number FROM system.numbers WHERE number >= 5 LIMIT 2;
SELECT * FROM system.numbers WHERE number == 7 LIMIT 1;
SELECT number AS n FROM system.numbers WHERE number IN(8, 9) LIMIT 2;
select number from system.numbers limit 0;
2023-03-03 14:13:07 +00:00
select x from system.numbers limit 1; -- { serverError UNKNOWN_IDENTIFIER }
SELECT x, number FROM system.numbers LIMIT 1; -- { serverError UNKNOWN_IDENTIFIER }
SELECT * FROM system.number LIMIT 1; -- { serverError UNKNOWN_TABLE }
SELECT * FROM system LIMIT 1; -- { serverError UNKNOWN_TABLE }
SELECT * FROM numbers LIMIT 1; -- { serverError UNKNOWN_TABLE }
SELECT sys.number FROM system.numbers AS sys_num LIMIT 1; -- { serverError UNKNOWN_IDENTIFIER }