从列值中删除点和逗号 [英] Remove dots and commas from column values

查看:73
本文介绍了从列值中删除点和逗号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SQL Server 2008

I am using SQL Server 2008

我从MySql迁移了一些数据;数据迁移成功,但是某些值包含带点和逗号的数据。

I migrated some data from MySql; the migration of data was successful but some values contain data with dots and commas.

从我的数据中删除这些字符的最佳方法是什么?

What is the best way to remove these characters from my data?

推荐答案

在sql server中,您可以使用REPLACE删除数据并使用STUFF添加数据

in sql server you can use REPLACE for remove data and STUFF to add data

如下

replace('Your String','charater you want to replace','with what')


stuff('Your String',position,count,'data') 

这篇关于从列值中删除点和逗号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆