gpt4 book ai didi

mysql - 如何在字符串mysql之间插入单词

转载 作者:行者123 更新时间:2023-11-29 08:22:37 24 4
gpt4 key购买 nike

我想插入字符串“Rs”。在字符串“pendrives above 2501”之间。因此输出将是“pendrives above Rs.2501”

现在 mysql 查询结果

    SELECT id,
url, replace(substring_index(replace(url, '-', ' '),
'/pendrive/',
- 1),
'in india.php',
'') as pagetitle
FROM
sitemap
where
category_id = 9 and (url like '%under%' or url like '%above%')

id url pagetitle
1 pendrive-above-2501.php pendrive above 2501
1 pendrive-below-500.php pendrive below 500
1 pendrive-below-700.php pendrive above 700

最佳答案

选择 REGEXP_REPLACE(PAGETITLE, '(上面的 pendrive)','RS 上面的 pendrive。')来自 Isitemap在哪里 Category_id = 9 and (url like '%under%' 或 url like '%above%');

关于mysql - 如何在字符串mysql之间插入单词,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18931208/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com