狼
狼牙
Unregistered / Unconfirmed
GUEST, unregistred user!
var
memname:string;
begin
memname:='#memtable'+FormatDateTime('HHMMSS',Now);
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('select * into '+ memname+' from 临时表');
adoquery1.ExecSQL;
adoquery1.Open;
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('select * from '+memname);
adoquery1.open;
end;这样的语句有错吗?为何一运行,程序报:该对象已存在于dataset中?
memname:string;
begin
memname:='#memtable'+FormatDateTime('HHMMSS',Now);
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('select * into '+ memname+' from 临时表');
adoquery1.ExecSQL;
adoquery1.Open;
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('select * from '+memname);
adoquery1.open;
end;这样的语句有错吗?为何一运行,程序报:该对象已存在于dataset中?