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.
将子查询转换为表。该函数用于实现 VIEW。
SELECT
view(subquery)
subquery
┌─id─┬─name─────┬─days─┐ │ 1 │ January │ 31 │ │ 2 │ February │ 29 │ │ 3 │ March │ 31 │ │ 4 │ April │ 30 │ └────┴──────────┴──────┘
SELECT * FROM view(SELECT name FROM months);
┌─name─────┐ │ January │ │ February │ │ March │ │ April │ └──────────┘
view
SELECT * FROM remote(`127.0.0.1`, view(SELECT a, b, c FROM table_name));
SELECT * FROM cluster(`cluster_name`, view(SELECT a, b, c FROM table_name));
此页面对您有帮助吗?