Paradox不支持脚本建库、建表以及相关的库、表结构修改的SQL脚本语言。因为他是一个桌面形的数据库,提供的功能很有限,只限于在做练习时使用!

解决方案 »

  1.   

    那你只能用代码来实现了.在窗体上加入TQuery Query1,TTable Table1
      Query1.SQL := 'select * from l_zcfg where cc='''2''''
      Query1.Active := True;
      ClientDataSet1.FieldDefs := TTable1.FieldDefs;
      ClientDataSet1.TableName := 'temp_zcfg';
      ClientDataSet1.CreateTable;
      ....
      

  2.   

    PARADOX虽然功能有限,但是这个事情应该是可能做的,你的表是动态创建,还是说不要以前的表了,直接取其中的数据,能不能说得明白一点
      

  3.   

    with TTable.create(self) do beginDatabaseName := 'C:\temp';TableName := 'FOO';TableType := ttParadox;with FieldDefs do BeginAdd('Age'
    ftInteger
    0
    True);
    Add('Name'
    ftString
    25
    False);
    Add('Weight'
    ftFloat
    0
    False);
    End;IndexDefs.Add('MainIndex''IntField'[ixPrimaryixUnique]);CreateTable;End;
    或许对你有点启发,这个我没有运行过,在一张盘上查的,看看行不行?