如何从表中的列中选择特定字符 [英] How to select a particular character from a column in table

查看:78
本文介绍了如何从表中的列中选择特定字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想选择varchar列的那些行,其中单引号(')在该列中。

我的目的只是删除那些单引号。

如何使用select命令来满足上述要求。任何人都可以指导我吗?

I want to select those rows of a varchar column where single quotes (') is within that column.
My purpose is just to remove those single quotes only.
How to use the select command for the above requirment. Can anyone guide me?

推荐答案

您可以使用 LIKE 运算符来选择这些行,例如

You may use the LIKE operator for selectinh such rows, e.g.
SELECT * FROM MyTable WHERE Name LIKE '%''%';





为了删除这些引号,我会使用编程语言,例如(如果你在 Windows 平台上进行编程) C#


这篇关于如何从表中的列中选择特定字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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