sql server - Inserting a character in the beginning of a string in SQL -


i need change 'postalcode' column strings setting character 'a' @ beginning of string. i've tried this:

update customers set postalcode = stuff(postalcode , 0 , 1 , 'a') 

but nothing... ideas?

you can try use concat

update customers set postalcode = concat('a', postalcode ) 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -