I'm looking for some quick help with a simple SQL query to append a string to all the values of a column in a table.
The columns is called "productType". I want to append the string "778a" to all the current values of that column using a query in SQL management studio.
Current table:
-------------
productType
-------------
apple
-------------
orange
-------------
pear
-------------
Table after query:
-------------
loginName
-------------
apple778a
-------------
orange778a
-------------
pear778a
-------------
Thanks,
Hi,
this is your sollution:
UPDATE table SET productType=Convert(VarChar(80),productType) + Convert(VarChar(80),'"&778a&"')
Looking further for any questions you might have.
All best,
Flavia
$10 USD in 0 day
5.0
(3 reviews)
1.1
1.1
5 freelancers are bidding on average $14 USD for this job
Hello,
You may use this to fix you issue:
UPDATE table_name SET productType = CONCAT(productType,'778a');
if this works for you please award the project to me. Thanks :)