Sql Server 去空格

ltrim(rtrim(REPLACE(OrderNumber, ' ', '')))

去掉数据中间与首尾的空格

原文地址:https://www.cnblogs.com/Anthony518/p/11448409.html