例子: 
  with CreateTablequery do
    begin
      close;
      sql.Clear ;
      sql.Add('Create Table tablename(field1 char(4),field2              int     )');
      execsql;
    end;

解决方案 »

  1.   

    例子:
       with CreateTablequery do
        begin
          close;
          sql.Clear ;
          sql.Add('Create Table gcdj_ls(xh char(4) null,demc char(50) null,debh char(50) null,dedw char(10) null,glmc char(20) null,dw char(4) null,sl char(4) null,dj char(10) null,fj char(10) null)');
          execsql;
        end;
      

  2.   

    例子:
       with CreateTablequery do
        begin
          close;
          sql.Clear ;
          sql.Add('Create Table gcdj_ls(xh char(4) null,demc char(50) null,debh char(50) null,dedw char(10) null,glmc char(20) null,dw char(4) null,sl char(4) null,dj char(10) null,fj char(10) null)');
          execsql;
        end;