字符去掉空格

 

一、去掉數據庫字段的先後空格,ltrim 去掉左邊的空格,rtrim去掉右邊的空格。sql

update tableName t set t.columnName = trim(t.columnName);