我有一个文字'This is the text {{Test1}}{{Test2}}.'
。我想列出{{}}
示例:
Test1
Test2
提前致谢
答案 0 :(得分:0)
SELECT
REPLACE(substring_index(substring_index(myColumn,'{{',-2),'{{',1), '}}', '') foo1,
REPLACE(substring_index(substring_index(myColumn,'{{',-1),'{{',1), '}}', '') foo2
FROM myTable
WHERE myTable.myColumn LIKE '%{{%';