with adoquery do
begin
  first;
  while not eof do
  begin
    插入临时表;
    .....
    next;
  end
end;

解决方案 »

  1.   

    用存储过程:
    select * into #linshibiao 
    from table
    where ....
      

  2.   

    adoquery1.savetofile;可以更快
      

  3.   

    例如我想将adoquery1查询的数据记录复制到table1表,我用这个语句:
    adoquery1.savetofile('table1')
    为什么不行呢?请指教!
      

  4.   

    adoquery2.close;
    adoquery2.SQL.clear;
    adoquery2.SQL.Add(select * into #linshibiao from table where .... );
    adoquery2.ExcSQL;
      

  5.   

    yangming_ok,我这样试了,怎么也不行?语法没错,可复制不过来。