Concatenate varchar and int

Is there a way to concatenate a varchar with an int?

Thanks.
jordanhelenAsked:
Who is Participating?
 
ralmadaConnect With a Mentor Commented:
yes,

select yourchar + cast(yourint as varchar(10)) from yourtable
0
 
ralmadaCommented:
so basically you need to cast your int to varchar first and then use the + operator to concatenate
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.