我正在使用 postgres 来提取一些数据。我有一个数组(类别),我想排除包含“>”的结果
select title, short_url, unnest(categories) as cats, winning_offer_amount
from auctions
where ended_at is not null
and '% > %' NOT IN cats
group by title, short_url, cats, winning_offer_amount
我意识到我的语法完全错误,但试图给出我想要写的东西的想法。结果可能是:
Women's > Shoes
Women's
Men's > Shoes
Men's
我想用'>'排除结果