S
superong
Unregistered / Unconfirmed
GUEST, unregistred user!
有一张表,表结构例如:Bh,ParnetID,A,B,C,D;Bh是主键,Parent,A,B三个条件可以决定一条记录.现在问题如下:<br> BH ParentID A B <br> 1 1 "aa" "bb" <br> 2 1 "aa" "cc"<br> 3 2 "aa" "bb"<br> 4 2 "aa" "cc"<br><br>如何写出效率较高的SQL语句得出结果为<br><br> BH ParentID A B <br> 1 1 "aa" "bb" <br> 3 2 "aa" "bb"<br> 2 1 "aa" "cc"<br> 4 2 "aa" "cc"