以下是個人比較常使用到的字串操作,更多的字串操作方式請參考String Functions and Operators
| 說明 | 範例 | 結果 |
| 字串相加 | 'Post' || 'greSQL' | PostgreSQL |
| 計算字元個數 | char_length('jose') | 回傳4 |
全部字元轉成小寫 | lower('TOM') upper('tom') | tom TOM |
| 取出子字串 | substr('Thomas',2,3) | hom |
以下是個人比較常使用到的字串操作,更多的字串操作方式請參考String Functions and Operators
| 說明 | 範例 | 結果 |
| 字串相加 | 'Post' || 'greSQL' | PostgreSQL |
| 計算字元個數 | char_length('jose') | 回傳4 |
全部字元轉成小寫 | lower('TOM') upper('tom') | tom TOM |
| 取出子字串 | substr('Thomas',2,3) | hom |