【发布时间】:2019-11-16 02:27:08
【问题描述】:
用具有许多不同 URL 类型的列 URL 替换 videos 表。
我使用 MariaDB 10.3
https://google.com/questions/ask?963
https://google.com/embed/57=66.88.028.10/i/03/077fsdf
https://google.com/top57=66.88.028.10/i/03/077
https://video.net/emb.html?asdeen45dr57=66.88.028.10/i/03/07776/asdeen45dr57
https://video.net/fomdfk5f7s1f.html
https://video.net/emb.html?qsfeen4gttv1=54.47.158.810/i/11/00036/qsfeen4gttv1
我需要删除特定网址的一部分(删除=之后的所有内容)
并替换为 .html
来自
https://video.net/emb.html?asdeen45dr57=66.88.028.10/i/03/07776/asdeen45dr57
到
https://video.net/emb.html?asdeen45dr57.html
在这种情况下,将替换
=66.88.028.10/i/03/07776/asdeen45dr57
与
.html
请注意,= 符号之后的 URL 部分对于每个 URL 都不同。
【问题讨论】:
-
什么版本的mysql?
标签: mysql sql replace phpmyadmin mariadb