标签: sql sql-server
我需要在T-SQL中连接Varchar和int,
Varchar
int
答案 0 :(得分:59)
SELECT ('VarValue' + CAST(32 AS VARCHAR))
答案 1 :(得分:6)
varcharName + cast(intName as varchar) as full_name
应该这样做