November 30, 2008 at 11:16 pm
Hi
I have two columns in my table:
ID(Bigint),NAME(VARCHAR)
i need to concatenate these two with a hyphen in between.
Can anyone help me on this??
Thanks,
November 30, 2008 at 11:24 pm
Select Cast(ID as varchar(18)) + '-' + NAME
From YourTable
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
November 30, 2008 at 11:39 pm
Thanks..
December 1, 2008 at 4:01 am
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy