parameter 'xxx' not found (急!!)

来源:百度知道 编辑:UC知道 时间:2024/05/02 19:25:54
with ADOQuery1 do
begin
Close;
SQL.Clear;
SQL.Add('insert into boxbarcode(xtm) values(:xxx)');
//Parameters.ParseSQL(sql.Text,true);
Parameters.ParamByName('xxx').Value:='123';
ExecSQL;
end;
运行时提示parameter 'xxx' not found

英文parameter 'xxx' not found的意思是找不到名称为“xxx”的参数。不过我觉得你的问题像是电脑方面的多一点吧,我的电脑水平有限,也帮不到你了

parameter 'xxx' not found 缺少对应参数'xxx'

with ADOQuery1 do
begin
Close;
SQL.Clear;
SQL.Add('insert into boxbarcode(xtm) values(:xxx)');
//Parameters.ParseSQL(sql.Text,true);
Parameters.ParamByName('xxx').Value:='123';
ExecSQL;
end;

请检查SQL数据插入函数中是否有相关参数未给出或未赋值!

参数没找到