mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-09 16:02:23 +00:00
17 lines
241 B
Plaintext
17 lines
241 B
Plaintext
-- { echoOn }
|
|
-- with limit
|
|
SELECT k
|
|
FROM remote('127.0.0.{2,3}', currentDatabase(), tlb)
|
|
ORDER BY k ASC
|
|
LIMIT 1 BY k
|
|
LIMIT 100;
|
|
0
|
|
1
|
|
-- w/o limit
|
|
SELECT k
|
|
FROM remote('127.0.0.{2,3}', currentDatabase(), tlb)
|
|
ORDER BY k ASC
|
|
LIMIT 1 BY k;
|
|
0
|
|
1
|