如何通过sql查找一张表中存了多个id的数据

2025-03-07 03:01:39
推荐回答(1个)
回答1:

两表根据两个字段关联即可
如 select distinct b.type_name from news a,news_type b where a.news_type_id= b.type_id and a.news_type_id = '1'