Solved

Concatenate varchar and int

Posted on 2010-11-17
2
569 Views
Last Modified: 2012-05-10
Is there a way to concatenate a varchar with an int?

Thanks.
0
Comment
Question by:jordanhelen
  • 2
2 Comments
 
LVL 41

Accepted Solution

by:
ralmada earned 500 total points
ID: 34157442
yes,

select yourchar + cast(yourint as varchar(10)) from yourtable
0
 
LVL 41

Expert Comment

by:ralmada
ID: 34157450
so basically you need to cast your int to varchar first and then use the + operator to concatenate
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now