Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
تُستخدم دالة جدول loop في ClickHouse لإرجاع نتائج الاستعلام ضمن حلقة لا نهائية.
SELECT ... FROM loop(database, table); SELECT ... FROM loop(database.table); SELECT ... FROM loop(table); SELECT ... FROM loop(other_table_function(...));
database
table
other_table_function(...)
SELECT * FROM loop(numbers(10));
numbers(10)
SELECT * FROM loop(test_database, test_table); SELECT * FROM loop(test_database.test_table); SELECT * FROM loop(test_table);
SELECT * FROM loop(numbers(3)) LIMIT 7; ┌─number─┐ 1. │ 0 │ 2. │ 1 │ 3. │ 2 │ └────────┘ ┌─number─┐ 4. │ 0 │ 5. │ 1 │ 6. │ 2 │ └────────┘ ┌─number─┐ 7. │ 0 │ └────────┘
SELECT * FROM loop(mysql('localhost:3306', 'test', 'test', 'user', 'password')); ...
هل كانت هذه الصفحة مفيدة؟