如何清空table1里的所有内容?谢谢!

解决方案 »

  1.   

    table1.first;
    while not table1.eof then table1.delete;
      

  2.   

    table1.first;
    while not table1.eof do then table1.delete;
    少写了个DO
      

  3.   

    table1.first;
    while not table1.eof do table1.delete;
    多写了then
    楼主不要打我,我不是故意玩你滴……
    -_-#
      

  4.   

    if table1.active then
      table1.first;
      while not table1.eof do
        table1.delete;/////////////我也来看看....楼上好啊!
      

  5.   

    ProgressBar1.min:=0;
    ProgressBar1.max:=table1的总条数
    在while not table1.eof do里面写上
    ProgressBar1.Position:=ProgressBar1.Position+1;
      

  6.   

    为什么不用truncate table tablename
      

  7.   

    truncate table tablename上面的这句是什么意思?
      

  8.   

    ProgressBar1.min:=0;
    ProgressBar1.max:=table1的总条数
    在while not table1.eof do里面写上
    ProgressBar1.Position:=ProgressBar1.Position+1;请问上面table1里面的总数如何获得?
      

  9.   

    ProgressBar1.min:=0;
    ProgressBar1.max:=table1的总条数
    在while not table1.eof do里面写上
    ProgressBar1.Position:=ProgressBar1.Position+1;请问上面table1里面的总数如何获得?
      

  10.   

    truncate table tablename   这个效率最高了
      

  11.   

    我选择了query1的databasename和datasource然后选择Active=true,为什么出现了如下的提示?Query1:NO SQL statement available.
      

  12.   

    因为 query1中没有SQLtext语句
      

  13.   

    请问table1可以统计出表里面有多少条记录吗?如果可以,代码应如何写?
      

  14.   

    table1.RecordCount:记录数
    ^_^