SQLServer字符串与数字拼接

一、使用cast
‘’+cast(@ID as varchar)ast

二、使用LTrim
‘’+LTrim(@ID)im

感受第二种方式代码简单,可是可读性很差。cas

相关文章
相关标签/搜索