这到不知道!提!/*************************************/
/*1、MY TOOL:*************************/
/*2、Delphi,Oracle,Sybase,C++/C*******/
/*3、PROJECT:*************************/
/*3、Boss*****************************/
/*4、为了五星的目标希望你早点结贴*****/
/*************************************/
下为我公司中餐定购点,大家随意随意.....
巴西小吃部:13033009888
阿根廷川味:13003059999
韩国料理城:3663371
英格兰拉面:3635476
西班牙火锅:3661693
中国大排挡:13956948888

解决方案 »

  1.   

    用sql语句 delete from table1;
      

  2.   

    adoquery1.close;
    adoquery1.sql.clear;
    adoquery1.sql.add('delete from table1');
    adoquery1.open;
      

  3.   

    TCustomADODataSet.DeleteRecordsDeletes one or more records in the recordset.TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
    procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);DescriptionUse DeleteRecords to delete one or more records from the recordset the ADO dataset component represents.If the recordset does not support record deletions, an exception is raised. Use the Supports method to determine whether the recordset supports deleting records.If the recordset was opened in batch update mode, the records are only ed for deletion. Apply the batch deletions by calling the UpdateBatch method. If the recordset is not in batch update mode, the records are immediately removed from the base table.AffectRecords is a TAffectRecords constant that determines which records are deleted by DeleteRecords. The default value for the AffectRecords parameter is arAll, which causes all records in the recordset to be deleted.Option MeaningarCurrent Only the deletes the current record.
    arFiltered Only deletes records accessible through the current filter.
    arAll Deletes all records in the recordset.
    arAllChapters Deletes records in all chapters (ADO chapters)
      

  4.   

    adoquery1.close;
    adoquery1.sql.clear;
    adoquery1.sql.add('delete from table1');
    adoquery1.open;
      

  5.   

    TCustomADODataSet.DeleteRecordsDeletes one or more records in the recordset.TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
    procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);DescriptionUse DeleteRecords to delete one or more records from the recordset the ADO dataset component represents.If the recordset does not support record deletions, an exception is raised. Use the Supports method to determine whether the recordset supports deleting records.If the recordset was opened in batch update mode, the records are only ed for deletion. Apply the batch deletions by calling the UpdateBatch method. If the recordset is not in batch update mode, the records are immediately removed from the base table.AffectRecords is a TAffectRecords constant that determines which records are deleted by DeleteRecords. The default value for the AffectRecords parameter is arAll, which causes all records in the recordset to be deleted.Option MeaningarCurrent Only the deletes the current record.
    arFiltered Only deletes records accessible through the current filter.
    arAll Deletes all records in the recordset.
    arAllChapters Deletes records in all chapters (ADO chapters)
      

  6.   

    用sql语句嘛,很简单,delete from yourtable,做数据库建议先学sql语句
      

  7.   

    使用专用语句
    Truncate Table TableName
    一次全部删除表中记录,快速!!!
      

  8.   

    while not adotable1.eof do 
       begin
        adotable1.first;
        adotable1.delete;
        adotable1.next;
       end;
      

  9.   

    tadoconnection.execute('delete from table');