如何不喜欢多个字符串

时间:2019-05-15 19:48:24

标签: regex hql hiveql rlike

有没有办法在单个rlike查询行中过滤出多个字符串

例如,我希望查询结果不包含“ apple”和“ pear”

 sample.name    sample.text
 a            I have an apple
 b            I have a pear
 c            I have an apple and a pear
 d            I have nothing

如果我输入 从样本中选择*,其中sample.text不像“ stackoverflow魔术答案”;

结果变为

sample.name   sample.text

 d            I have nothing

0 个答案:

没有答案