MySQL中联合主键的 in 查询

就一句话:

SELECT * from Projects WHERE (Prj,SubID) in (SELECT Prj,SubID FROM SP where stage='设计' and 负责人 = 'XXX000')

 

posted @ 2021-01-06 10:38  神棍二叔  阅读(1332)  评论(0编辑  收藏  举报