查询一张表中的字段是否存在于另一张表

select a.StaffCode,a.HospitalCode from MDS_DoctorRequest a,MDS_UserHospitalProduct b
where
a.StaffCode=b.StaffCode and a.HospitalCode=b.HospitalCode

posted @ 2012-05-15 19:13  冰馨冷恋  阅读(507)  评论(0编辑  收藏  举报