How to change datatype using replace function in SQL Server -


select     replace(street, char(10), '') streettable 

have explored syntax of replace function ...but how piece of code work?

the sample code doesn't change datatype. char(10) line feed , code replaces line feeds empty symbol in street column(not in table, on fly present. data in table stays untouched).

if want change datatype should alter column. like:

alter table streettable alter column street varchar(777) null 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -