D
dorry
Unregistered / Unconfirmed
GUEST, unregistred user!
动态参数插入语句 如下
Sqlstr:='Insert into SQunload(BatchNO,PartNO,RingType,SQOutdate,SQoutTime) ValuesBatchNO, artNO, :RingType, :SQOutdate, :SQoutTime)';
DM.FQuery.Close;
DM.FQuery.SQL.Clear;
DM.FQuery.SQL.text:=Sqlstr;
DM.FQuery.Params.ParamByName('BatchNO').AsInteger:=100;
//此处报错 :"FQuery arameter 'BatchNO'Not Found"
DM.FQuery.Params.ParamByName('PartNO').AsInteger:=1000;
DM.FQuery.Params.ParamByName('RingType').AsString:='qqq';
DM.FQuery.Params.ParamByName('SQOutdate').AsDate:=date;
DM.FQuery.Params.ParamByName('SQoutTime').AsTime:=Time;
DM.FQuery.ExecSQL;
反复核对 数据库表字段等没有问题.
不知何故,请高手解答.
Sqlstr:='Insert into SQunload(BatchNO,PartNO,RingType,SQOutdate,SQoutTime) ValuesBatchNO, artNO, :RingType, :SQOutdate, :SQoutTime)';
DM.FQuery.Close;
DM.FQuery.SQL.Clear;
DM.FQuery.SQL.text:=Sqlstr;
DM.FQuery.Params.ParamByName('BatchNO').AsInteger:=100;
//此处报错 :"FQuery arameter 'BatchNO'Not Found"
DM.FQuery.Params.ParamByName('PartNO').AsInteger:=1000;
DM.FQuery.Params.ParamByName('RingType').AsString:='qqq';
DM.FQuery.Params.ParamByName('SQOutdate').AsDate:=date;
DM.FQuery.Params.ParamByName('SQoutTime').AsTime:=Time;
DM.FQuery.ExecSQL;
反复核对 数据库表字段等没有问题.
不知何故,请高手解答.