日期:2014-05-17 浏览次数:20553 次
SELECT * FROM ss
WHERE
ss.A is not null and ss.B is not null and ss.c is not null
and
(
(ss.A=ISNULL(ss.B,ss.A) or ss.A=ISNULL(ss.C,ss.A))
OR (ss.B=ISNULL(ss.A,ss.B) or ss.B=ISNULL(ss.C,ss.B))
OR (ss.C=ISNULL(ss.A,ss.C) or ss.C=ISNULL(ss.B,ss.C))
)