I want to add some prefix in each column of my table manually. I have a table named ProductMaster.
I want to add a column Product_Id and want to add it like P-1, P-2, P-3... so on.
Here I'm using C# window application and sql server 2008 R2.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted Feb 9, 2015, 10:22 PM EST
select 'P-'+Product_Id as Product_Id from tablename