我想将包含特定单词的所有记录分组。 EX:在excel中,当我们在包含中给出一个单词时,fiter是如何工作的。 例如: mobile1, 移动, 移动, 45移动, 移动台。 我想要包含移动
的所有记录答案 0 :(得分:1)
我觉得实际上你的任务在某种程度上更复杂 - 但你呈现它的方式使它看起来相对简单 - 你甚至不需要正则表达式在这里
请查看以下示例
SELECT
line
FROM
(SELECT 'I want to group all ' AS line),
(SELECT 'the records that ' AS line),
(SELECT 'contains a particular word. ' AS line),
(SELECT 'EX: in excel how the fiter ' AS line),
(SELECT 'works when we give a word ' AS line),
(SELECT 'in the contains. Eg: mobile1,' AS line),
(SELECT 'mobile, ' AS line),
(SELECT 'Mobile, ' AS line),
(SELECT '45-mobile, ' AS line),
(SELECT 'mobile station. ' AS line),
(SELECT 'i want all the records ' AS line),
(SELECT 'that contains mobile ' AS line),
WHERE LOWER(line) CONTAINS 'mobile'