Z
zhang
Unregistered / Unconfirmed
GUEST, unregistred user!
我有以下一段程序
query1.close;
query1.sql.Clear;
query1.SQL.Add('insert into student(name,address)');
query1.sql.add('values name,:address)');
query1.Params.CreateParam(ftstring,'name',ptinput);
query1.Params.CreateParam(ftstring,'address',ptinput);
query1.ParamByName('name').asstring:='zhang';
query1.ParamByName('address').asstring:='hangzhou';
query1.ExecSQL;
运行后,产生一个EDBEngineError异常'could not find object.',为什么?
query1.close;
query1.sql.Clear;
query1.SQL.Add('insert into student(name,address)');
query1.sql.add('values name,:address)');
query1.Params.CreateParam(ftstring,'name',ptinput);
query1.Params.CreateParam(ftstring,'address',ptinput);
query1.ParamByName('name').asstring:='zhang';
query1.ParamByName('address').asstring:='hangzhou';
query1.ExecSQL;
运行后,产生一个EDBEngineError异常'could not find object.',为什么?