不喜欢'%gmaii.co%'不工作

时间:2018-06-11 01:06:01

标签: sql amazon-redshift

我正在使用连接到Redshift的SQL工作台。

我在我的查询中写道,电子邮件不像'%gmaii.co%',由于某种原因,NULLS也被排除在外。

为什么它也排除了NULLS?我只想排除有gmail.com的电子邮件。

1 个答案:

答案 0 :(得分:3)

Select * from table
where Email not like '%gmaii.co%' or email is null
相关问题