• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 599
  • Last Modified:

Concatenate varchar and int

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

Thanks.
0
jordanhelen
Asked:
jordanhelen
  • 2
1 Solution
 
ralmadaCommented:
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now