简体   繁体   English

查找和替换MySQL查询中所有entires表,列中的引号

[英]Find and Replace quotes in all the entires tables, columns in MySQL query

How to replace quotes in all the entires tables, columns in MySQL database using phpmyadmin ? 如何使用phpmyadmin replace quotes MySQL database中所有entires表,列中的replace quotes

Example : find the quotes ' , replace with other quotes ' 示例 :找到引号' ,替换为其他引号'

Thanks. 谢谢。

UPDATE `tableName` SET `columnName` = REPLACE(`columnName`, '\'', '`')

使用\\ character转义引号。

You can use "Find and replace", located under the "Search" tab, for this purpose. 为此,您可以使用“搜索”选项卡下的“查找和替换”。

From your table, click the Search tab (which is the fourth tab in the phpMyAdmin I'm using). 从表中,单击“搜索”选项卡(这是我正在使用的phpMyAdmin中的第四个选项卡)。

On the resulting page, click "Find and replace" 在结果页面上,单击“查找并替换”

查找并替换选项卡

Next, enter what you want to search for, which column to use, and what you want to replace it with. 接下来,输入要搜索的内容,要使用的列以及要替换的内容。 Also note that you have to escape both the single quote and "smart quote" characters: 另请注意,您必须同时退出单引号和“智能引号”字符:

查找和替换

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM