摘要:
-------distinct 去重复查询select * from accounts acc join (select distinct accid from roles) r on r.accid=acc.ID-----不需要distinct select * from (select MAX(ID)roleid,accid from roles group by accid) rr join (select * from accounts) acc on acc.ID=rr.accid--------解释一下不用distinct 去重复查询语句Select * from (Select 阅读全文
posted @ 2013-10-18 18:26
夕诺
阅读(23883)
评论(0)
推荐(0)
浙公网安备 33010602011771号