Access里一条简单的SQL语句为啥执行错误?
大大们 帮我看看下面这条语句为啥不行:
with DataModule.qry do
begin
sql.Clear;
SQL.Add('update Train set User='+inttostr(I)+' where user in null and id='+inttostr(A));
ExecSQL;
sql.Clear;
end;
提示Update语句错误,其中两个参数全为整数,表中对应的也是字段也是数字。我读过sql.text正常,拷贝到Access中执行SQL语句时能更新的。