开发者

Concatenate a Varchar and int [duplicate]

开发者 https://www.devze.com 2023-02-09 05:12 出处:网络
This question already has answers here: How to Concatenate Numbers and Stri开发者_Go百科ngs to Format Numbers in T-SQL?
This question already has answers here: How to Concatenate Numbers and Stri开发者_Go百科ngs to Format Numbers in T-SQL? (10 answers) Closed 8 years ago.

I need to Concatenate a Varchar and int in T-SQL , !


SELECT ('VarValue' + CAST(32 AS VARCHAR))


varcharName + cast(intName as varchar) as full_name

Should do it

0

精彩评论

暂无评论...
验证码 换一张
取 消