i have table like below
sno name code id
1 asvr 123 3
2 ramu 789 7
3 raju 456 3
4 praveen 876 3
i want o/p like when id=3 add character "r" to end of code ..like below ...
sno name code id
1 asvr 123r 3
2 ramu 789 7
3 raju 456r 3
4 praveen 876r 3
Add charcter end of the string
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Feb 26, 2014, 12:07 AM EST
Kiran Kumar TalikotiRank #814 · 2.8K reputationPosted Feb 25, 2014, 9:48 PM EST
Try this query it will work as you expected
select sino,name,code+'r' as code ,id from TableName where id=3
Hope this helps you
JAYRAMRank #7,836 · 233 reputationPosted Feb 25, 2014, 10:08 PM EST
shashi kiran Jillepally25 reputationPosted Feb 26, 2014, 1:32 AM EST
select ColName+'r' from TableName
if you want change entire column values permanently use this query
update TableName set Code=Code+'r'
or with where conditon
update TableName Code=Code+'r' where Id=3