[英]How to remove special characters from a string completely in sql server
update myTable set Column = REPLACE(Column,'₦', '') 更新myTable设置Column = REPLACE(Column,'₦','')
I tried to remove the naira with the above command but it's not just working for me. 我尝试使用上述命令删除naira ,但它不仅对我有用 。
Update myTable set [Column] = REPLACE([Column],N'₦', '') -- Assuming nvarchar()
You should try to avoid Reserved Words. 您应尽量避免使用保留字。
https://msdn.microsoft.com/en-us/library/ms189822.aspx https://msdn.microsoft.com/zh-CN/library/ms189822.aspx
UPDATE Dummy set myColumn = replace(myColumn,'abc','xyz');
其中abc是要从mycolumn中删除的字符,xyz是要用特殊字符替换的子字符串
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.