select 补集 not in

发表于:2007-07-02来源:作者:点击数: 标签:
    SELECT * FROM DT_ROLES l WHERE l.OID NOT IN ( SELECT r.DT_ROLES_OID FROM DT_MEMBER_TYPE_ROLES_CONTRAST r,DT_ROLES l WHERE r.DT_ROLES_OID = l.OID AND r.OID=65127)

原文转自:http://www.ltesting.net