- 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 4 < 5 as lessthan;
結果
lessthan ---------- true (1 row)
以上條件為真,因此結果為真。
查詢 2
presto:default> select 25 >= 45 as greater;
結果
greater --------- false (1 row)
以上條件為假,因此結果為假。
查詢 3
presto:default> select 3<>5 as notequal;
結果
notequal ---------- true
這裡 3 不等於 5,因此結果返回為真。
apache_presto_basic_sql_operations.htm
廣告