Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
immad
Posting Yak Master
230 Posts |
Posted - 2014-09-22 : 04:38:22
|
hi,my data is like thisID--Country----Code1---ARGENTINA---102---AUSTRALIA---133---BELGIUM------21i want this type of dataID--Country1---ARGENTINA+{10}2---AUSTRALIA+{13}3---BELGIUM+{21}please help me out thanks for the helpimmad uddin ahmed |
|
Arun Babu N
Starting Member
26 Posts |
Posted - 2014-09-22 : 04:43:53
|
Create table #tmp( country varchar(12), code int)insert into #tmpSelect 'ARGENTINA',10Select concat(country,'+{',code,'}')--2012 from #tmpSelect country +'+{'+ cast (code as varchar(10))+'}'--2008 from #tmparunbabu |
|
|
|
|
|