sql去除读出来的字段中的空格

_代表空格

ltrim去掉左边空格

ltrim("_hello_sql_ ");

变为hello_sql_

rtrim去掉右边空格

ltrim("_hello_sql_")

变为  _hello_sql

可以用replace去掉所有空格

replace("_hello_sql_",' ',");

变为hellosql

原文地址:https://www.cnblogs.com/hpuCode/p/2418134.html