Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过在字符串中间添加值来更新mysql中某列的记录_Mysql_Sql_Database_Mysql Workbench - Fatal编程技术网

通过在字符串中间添加值来更新mysql中某列的记录

通过在字符串中间添加值来更新mysql中某列的记录,mysql,sql,database,mysql-workbench,Mysql,Sql,Database,Mysql Workbench,我在“表”中有一个名为“url”的列,其记录在模式“”中 我想将这些更新为“”。这张桌子很大。如何执行此操作?用另一个字符串替换字符串的函数是replace: update my_table set url = replace(url, 'http://', 'https://www.'); 您可以使用REPLACE-in-build函数 选择替换(“”,'http://','.')使用函数更新列 查询 update my_table set url = replace(url, 'http:

我在“表”中有一个名为“url”的列,其记录在模式“”中


我想将这些更新为“”。这张桌子很大。如何执行此操作?

用另一个字符串替换字符串的函数是
replace

update my_table
set url = replace(url, 'http://', 'https://www.');

您可以使用REPLACE-in-build函数

选择替换(“”,'http://','.')使用函数更新列

查询

update my_table
set url = replace(url, 'http://', 'https://www.');

只需使用
REPLACE
功能