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
Post a Comment