2019-06-07 14:26:29 +00:00
|
|
|
DROP TABLE IF EXISTS storage;
|
|
|
|
CREATE TABLE storage(UserID UInt64) ENGINE=Memory;
|
|
|
|
INSERT INTO storage(UserID) values (6460432721393873721)(6460432721393873721)(6460432721393873721)(6460432721393873721)(6460432721393873721)(6460432721393873721)(6460432721393873721)(402895971392036118)(402895971392036118)(402895971392036118);
|
2015-10-15 11:07:39 +00:00
|
|
|
|
2019-06-07 14:26:29 +00:00
|
|
|
SELECT sum(UserID GLOBAL IN (SELECT UserID FROM remote('127.0.0.{2,3}', currentDatabase(), storage))) FROM remote('127.0.0.{2,3}', currentDatabase(), storage);
|
|
|
|
SELECT sum(UserID GLOBAL IN (SELECT UserID FROM storage)) FROM remote('127.0.0.{2,3}', currentDatabase(), storage);
|
|
|
|
|
|
|
|
DROP TABLE storage;
|