sql补零去空格

sql补零

update Promote set PromoteSName=right('000'+cast(PromoteSName as varchar),3)

sql去空格

update Promote set PromoteSName=ltrim(PromoteSName)

原文地址:https://www.cnblogs.com/codeloves/p/3083404.html