- Apache Presto 教程
- Apache Presto - 主页
- Apache Presto - 概述
- Apache Presto - 架构
- Apache Presto - 安装
- Apache Presto - 配置
- Apache Presto - 管理
- Apache Presto - SQL 操作
- Apache Presto - SQL 函数
- Apache Presto - MySQL 连接器
- Apache Presto - JMX 连接器
- Apache Presto - HIVE 连接器
- Apache Presto - KAFKA 连接器
- Apache Presto - JDBC 接口
- 自定义函数应用
- Apache Presto 有用资源
- Apache Presto - 快速指南
- Apache Presto - 有用资源
- Apache Presto - 讨论
Apache Presto - 数组运算符
以下是数组运算符类型。
数组下标 [] 运算符
查询
presto:default> select array[1,2,3] as array_elements;
结果
array_elements ---------------- [1, 2, 3]
数组下标运算符返回数组元素。
数组连接运算符
查询
presto:default> select array[1,2,3] || array[4] as array_concat;
结果
array_concat -------------- [1, 2, 3, 4]
此处,两个数组与一个数组连接。
apache_presto_basic_sql_operations.htm
广告