- Apache Tajo 教程
- Apache Tajo - 首頁
- Apache Tajo - 簡介
- Apache Tajo - 架構
- Apache Tajo - 安裝
- Apache Tajo - 配置設定
- Apache Tajo - Shell 命令
- Apache Tajo - 資料型別
- Apache Tajo - 運算子
- Apache Tajo - SQL 函式
- Apache Tajo - 數學函式
- Apache Tajo - 字串函式
- Apache Tajo - 日期時間函式
- Apache Tajo - JSON 函式
- Apache Tajo - 資料庫建立
- Apache Tajo - 表管理
- Apache Tajo - SQL 語句
- 聚合與視窗函式
- Apache Tajo - SQL 查詢
- Apache Tajo - 儲存外掛
- 與 HBase 整合
- Apache Tajo - 與 Hive 整合
- OpenStack Swift 整合
- Apache Tajo - JDBC 介面
- Apache Tajo - 自定義函式
- Apache Tajo 有用資源
- Apache Tajo - 快速指南
- Apache Tajo - 有用資源
- Apache Tajo - 討論
Apache Tajo - 字串函式
下表列出了 Tajo 中的字串函式。
| 序號 | 函式及描述 |
|---|---|
| 1 | concat(string1, ..., stringN)
連線給定的字串。 |
| 2 | length(string)
返回給定字串的長度。 |
| 3 | lower(string)
返回字串的小寫格式。 |
| 4 | upper(string)
返回給定字串的大寫格式。 |
| 5 | ascii(string text)
返回文字第一個字元的ASCII碼。 |
| 6 | bit_length(string text)
返回字串中的位數。 |
| 7 | char_length(string text)
返回字串中的字元數。 |
| 8 | octet_length(string text)
返回字串中的位元組數。 |
| 9 | digest(input text, method text)
計算字串的摘要雜湊值。這裡,第二個引數method指的是雜湊方法。 |
| 10 | initcap(string text)
將每個單詞的第一個字母轉換為大寫。 |
| 11 | md5(string text)
計算字串的MD5雜湊值。 |
| 12 | left(string text, int size)
返回字串中前n個字元。 |
| 13 | right(string text, int size)
返回字串中最後n個字元。 |
| 14 | locate(source text, target text, start_index)
返回指定子字串的位置。 |
| 15 | strposb(source text, target text)
返回指定子字串的二進位制位置。 |
| 16 | substr(source text, start index, length)
返回指定長度的子字串。 |
| 17 | trim(string text[, characters text])
刪除字串開始/結束/兩端指定的字元(預設為空格)。 |
| 18 | split_part(string text, delimiter text, field int)
根據分隔符分割字串,並返回給定的欄位(從1開始計數)。 |
| 19 | regexp_replace(string text, pattern text, replacement text)
替換與給定正則表示式模式匹配的子字串。 |
| 20 | reverse(string)
對字串執行反轉操作。 |
廣告