1. 程式人生 > >oracle如何去除某個欄位中的空格?

oracle如何去除某個欄位中的空格?

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()只能刪除字串中的半形空格;