pgsql groupby 区别

 

 

select sum(miprice)
from web_billdetail
where plineid = 8
group by miprice

 

//得出 1 2 两行

 

 

select sum(miprice)
from web_billdetail
where plineid = 8

 

//得出 3  一行

 

 

 

 

你可能感兴趣的:(Web)