Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下类别(多对多关系):
+ post post_tag + tag post_category + category
我如何创建 SQL 查询来检查哪些标签在没有类别的帖子中?
谢谢!!!
select distinct pt.tagname from post_tag pt where not exists ( select * from post_category pc where pc.post_id = pt.post_id )