我只想在id = 819
中删除行expire_date
,当我使用group by时,系统已删除该行expire_date
但我不删除主题我需要它们
我的查询结果:
这是我的问题:
SELECT DISTINCT
ads.id, a.expire_date
FROM(SELECT id, expire_date from ads
UNION
SELECT ads_id as id , expire_date from ads_order where expire_date > NOW())
a JOIN ads on ads.id = a.id
ORDER by a.expire_date DESC , ads.id DESC