是有问题会跳出楼的对话框
SELECT id, 产品, 单价, 数量, 金额 as 合计 FROM tblStudy
UNION
SELECT "总计:" AS id, "" AS 产品, "" AS 单价, "" AS 数量, SUM(金额) AS 合计 FROM tblStudy;
我是这样改的:
SELECT id, 产品, 单价, 数量, 合计 as 金额 FROM tblStudy
UNION
SELECT "总计:" AS id, "" AS 产品, "" AS 单价, "" AS 数量, SUM(合计) AS 金额 FROM tblStudy;