显示不包含逗号分隔列表Oracle中任何字符串的行

时间:2018-09-12 17:14:45

标签: string-matching

我有一个名为“标签”的列,该列具有逗号分隔的值。我要排除包含我要排除的任何字符串的行。

Table1
Row  Tags
===  =======
1    Land Not Separated
2    Intercompany Schedule,Schedule Reviewed
3    Land Not Separated,Schedule Reviewed
4    Intercompany Schedule
5    Schedule Reviewed

从表1中选择标签,其中标签“不输入”(“土地不分开”,“公司间计划”); 预期输出:-

Table1
Row  Tags
===  =======
5    Schedule Reviewed

上述查询无法正常工作,因为“标签”列包含逗号分隔的值。 我正在Oracle上进行尝试,因此即使是正则表达式也可以做到。

谢谢

0 个答案:

没有答案