日期:2014-05-18 浏览次数:20417 次
update A set B=left(B,2)+'-'+right(B,2)
------解决方案--------------------
UPDATE A SET B = LEFT(RTRIM(LTRIM(B)),2)+'-'+RIGHT(RTRIM(LTRIM(B)),2)
------解决方案--------------------
UPDATE A SET B=LEFT(B,2)+'-'+RIGHT(B,2)
------解决方案--------------------
update a set a = left(a,2)+'-'+right(a,2),b=left(b,2)+'-'+right(b,2),
------解决方案--------------------
UPDATE a SET B = LEFT(RTRIM(LTRIM(B)),2)+ '- '+RIGHT(RTRIM(LTRIM(B)),2)
------解决方案--------------------
update A set B=left(B,2)+'-'+right(B,2)
------解决方案--------------------
update A set B=stuff(B,2,0,'-')