我想从字符串中提取所有标签,并将它们添加到mysql的新列中,例如:
string :
hello #name# , current time is : #time# and today is : #today_date#
output :
#name#
#time#
#today_date#
我希望能够搜索表格中所有行的
text
列,并将输出结果更新到 tags_list
列。要查找具有标签的所有行,我们可以使用以下查询。
SELECT `text` FROM 'table' WHERE `text` REGEXP '#.*#'
但如何提取所有匹配项并使用输出结果更新
tags_list
列?
tag_list
列中? - RomanPerekhrest