select RightID,RightName,RightType from rightinfo where RightID not in (SELECT a.RightID, b.RightName, b.RightType FROM RoleRight a , RightInfo b where a.RightID = b.RightID and a.RoleID=101 );
to hahatroy(努力学习) ,你的不行,zlqs(啊啊啊) 的正解,还有没有其它的方法,下班结贴
select RightID,RightName,RightType from rightinfo where not exists(SELECT a.RightID from RoleRight a where a.RoleID=101 and a.RightID = b.RightID)这句效果应该是一样的
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货