战
战狂
Unregistered / Unconfirmed
GUEST, unregistred user!
begin
query1.Close ;
query1.sql.Clear;
query1.SQL.Add ('insert into 注塑工资(工号,姓名,月份,计件资) select 工号,姓名,月份, sum(计件工资) as 计工资 from 注塑随工单 where 月份=edit1.text');
query1.SQL.Add('group by 工号,姓名,月份');
query1.ExecSQL;
button9.Enabled:=false;
end;
运行时报错:"参数不足"
如果用月份不用等于edit1.text而是直接数字就可以
query1.Close ;
query1.sql.Clear;
query1.SQL.Add ('insert into 注塑工资(工号,姓名,月份,计件资) select 工号,姓名,月份, sum(计件工资) as 计工资 from 注塑随工单 where 月份=edit1.text');
query1.SQL.Add('group by 工号,姓名,月份');
query1.ExecSQL;
button9.Enabled:=false;
end;
运行时报错:"参数不足"
如果用月份不用等于edit1.text而是直接数字就可以