我在使用 ANY 进行查询时遇到了一个小问题。
Select *, count(*) as m
from mp_bigrams_raw
where date_parsed=051213
and art_source='f'
and bigram != ANY(select feed_source from mp_feed_sources)
group by bigram
order by m DESC
limit 50;
查询运行,但不排除在子查询中找到的项目。
原始查询在subquery
. 一旦我添加了更多,我就会收到超过 1 行的错误。
Select *, count(*) as m
from mp_bigrams_raw
where date_parsed=051213
and art_source='f'
and bigram != (select feed_source from mp_feed_sources)
group by bigram
order by m DESC
limit 50;
从那里我添加了 ANY 并且查询运行但似乎忽略了!=。我猜我在这里遗漏了一些东西。
谢谢