- 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 - 十進位制運算子
查詢 1
presto:default> select decimal '123' + decimal ’22’ as decimal;
結果
decimal ------- 145
輸出為十進位制加法。
查詢 2
presto:default> select decimal '123' - decimal ’22’ as unary_minus;
結果
unary_minus ------- 101
查詢 3
presto:default> select decimal '123' between decimal '100' and decimal '200' as decimal_range;
結果
decimal_range --------------- true
此處,123 位於指定範圍之間。
apache_presto_basic_sql_operations.htm
廣告