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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khargesh RajputPosted Feb 10, 2015, 3:22 AM
select 'P-'+Product_Id as Product_Id from tablename