$sql="SELECT ref_id_prd,SUM(number) number,SUM(number) price,Sum(number) AS Sumnumber ,price FROM tb_order_detail GROUP BY ref_id_prd";
ชวนหน่อยน่ะครับ
Tag : PHP, PostgreSQL, CakePHP
Date :
2010-12-16 10:05:24
By :
1
View :
755
Reply :
1
No. 1
Guest
$sql="SELECT ref_id_prd,SUM(number) number,SUM(number) price,Sum(number) AS Sumnumber ,Sum(price) As Sumprice FROM tb_order_detail GROUP BY ref_id_prd";