D
delphi_初学者
Unregistered / Unconfirmed
GUEST, unregistred user!
INSERT INTO BBBB
(CK_Name,CP_LB,CP_XL,CP_ID,CP_Name,CP_GuiGe,FuCha,CCD_ShuLiang,JinE,YingKui)
SELECT
CK_Name,CP_LB,CP_XL,CP_ID,CP_Name,CP_GuiGe,FuCha, SUM(CCD_ShuLiang), SUM(CCD_ShuLiang * CCD_DanJia),SUM(CCD_ShuLiang * (CCD_DanJia - CK_DanJia))
FROM DChuCang2 Where CC_ID in (SELECT CC_ID FROM DChuCang1 Where CC_Type = "销售")
GROUP BY CK_Name,CP_LB,CP_XL,CP_ID,CP_Name,CP_GuiGe,FuCha
运行总是提示"Invalid parameter",我是用的ParAdox的数据库
(CK_Name,CP_LB,CP_XL,CP_ID,CP_Name,CP_GuiGe,FuCha,CCD_ShuLiang,JinE,YingKui)
SELECT
CK_Name,CP_LB,CP_XL,CP_ID,CP_Name,CP_GuiGe,FuCha, SUM(CCD_ShuLiang), SUM(CCD_ShuLiang * CCD_DanJia),SUM(CCD_ShuLiang * (CCD_DanJia - CK_DanJia))
FROM DChuCang2 Where CC_ID in (SELECT CC_ID FROM DChuCang1 Where CC_Type = "销售")
GROUP BY CK_Name,CP_LB,CP_XL,CP_ID,CP_Name,CP_GuiGe,FuCha
运行总是提示"Invalid parameter",我是用的ParAdox的数据库