sql补零去空格

sql补零

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

sql去空格

update Promote set PromoteSName=ltrim(PromoteSName)

posted @ 2013-05-17 11:56  王者杂货铺  阅读(251)  评论(0编辑  收藏  举报