试试select * from czb into #temp

解决方案 »

  1.   

    出错信息如下:
    Invalid use of keyword
    Token:into
    Line Number:1
    请问我怎么解决呢?
      

  2.   

    paradox,就是在delphi里用的数据库
      

  3.   

    paradox是没有'select * into #temp from czb'这个语法的吧?
      

  4.   

    select * from czb as temp
      

  5.   

    //如何将TQUERY查询出的数据项导入一个表procedure TForm1.Button1Click(Sender: TObject);
    var
      FileNames: string;
    begin
      Table1.Close;
      Table1.FieldDefs.Assign(Query1.FieldDefs);
      Table1.TableName := 'NewTable';
      Table1.CreateTable;  Table1.Open;
      Query1.First;
      FileNames := StringReplace(Trim(Query1.FieldList.Text), #13#10, ';', [rfReplaceAll]);
      while not Query1.Eof do begin
        Table1.Append;
        Table1[FileNames] := Query1[FileNames];
        Table1.Post;
        Query1.Next;
      end;
    end; 
      

  6.   

    //如何将TQUERY查询出的数据项导入一个表procedure TForm1.Button1Click(Sender: TObject);
    var
      FileNames: string;
    begin
      Table1.Close;
      Table1.FieldDefs.Assign(Query1.FieldDefs);
      Table1.TableName := 'NewTable';
      Table1.CreateTable;  Table1.Open;
      Query1.First;
      FileNames := StringReplace(Trim(Query1.FieldList.Text), #13#10, ';', [rfReplaceAll]);
      while not Query1.Eof do begin
        Table1.Append;
        Table1[FileNames] := Query1[FileNames];
        Table1.Post;
        Query1.Next;
      end;
    end;