W
westboy2000
Unregistered / Unconfirmed
GUEST, unregistred user!
要排序这样写就行了:
SELECT t1.no1,t1.name,SUM(t2.ml) AS ml
From t1 LEFT JOIN t2 ON t1.No1=t2.No1
Group By t1.no1,t1.name order by ml;
要降序排列这样写:order by ml desc;
SELECT t1.no1,t1.name,SUM(t2.ml) AS ml
From t1 LEFT JOIN t2 ON t1.No1=t2.No1
Group By t1.no1,t1.name order by ml;
要降序排列这样写:order by ml desc;