刪除sql末的逗號

SET @SQL=SUBSTRING(@SQL,1,LEN(@SQL)-1)

原文地址:https://www.cnblogs.com/dennysong/p/3022073.html