oracle trim函數的用法

1. trim()刪除字符串兩邊的空格。
2. ltrim()刪除字符串左邊的空格。
3. rtrim()刪除字符串右邊的空格。
4. trim('字符1' from '字符串2')  分別從字符2串的兩邊開始,刪除指定的字符1。
5. trim([leading | trailing | both] trim_char from string) 從字符串String中刪除指定的字符trim_char。
  leading:從字符串的頭開始刪除。
  trailing:從字符串的尾部開始刪除。
  borth:從字符串的兩邊刪除。
6. tim()只能刪除半角空格。 

 

參考來源:https://wiseboyloves.iteye.com/blog/1233520

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章