12 个解决方案
#1
这到不知道!提!
/*************************************/
/*1、MY TOOL:*************************/
/*2、Delphi,Oracle,Sybase,C++/C*******/
/*3、PROJECT:*************************/
/*3、Boss*****************************/
/*4、为了五星的目标希望你早点结贴*****/
/*************************************/
下为我公司中餐定购点,大家随意随意.....
巴西小吃部:13033009888
阿根廷川味:13003059999
韩国料理城:3663371
英格兰拉面:3635476
西班牙火锅:3661693
中国大排挡:13956948888
/*************************************/
/*1、MY TOOL:*************************/
/*2、Delphi,Oracle,Sybase,C++/C*******/
/*3、PROJECT:*************************/
/*3、Boss*****************************/
/*4、为了五星的目标希望你早点结贴*****/
/*************************************/
下为我公司中餐定购点,大家随意随意.....
巴西小吃部:13033009888
阿根廷川味:13003059999
韩国料理城:3663371
英格兰拉面:3635476
西班牙火锅:3661693
中国大排挡:13956948888
#2
用sql语句
delete from table1;
delete from table1;
#3
adoquery1.close;
adoquery1.sql.clear;
adoquery1.sql.add('delete from table1');
adoquery1.open;
adoquery1.sql.clear;
adoquery1.sql.add('delete from table1');
adoquery1.open;
#4
TCustomADODataSet.DeleteRecords
Deletes one or more records in the recordset.
TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);
Description
Use 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 marked 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 Meaning
arCurrent 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)
Deletes one or more records in the recordset.
TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);
Description
Use 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 marked 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 Meaning
arCurrent 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)
#5
adoquery1.close;
adoquery1.sql.clear;
adoquery1.sql.add('delete from table1');
adoquery1.open;
adoquery1.sql.clear;
adoquery1.sql.add('delete from table1');
adoquery1.open;
#6
同意楼上,
#7
TCustomADODataSet.DeleteRecords
Deletes one or more records in the recordset.
TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);
Description
Use 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 marked 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 Meaning
arCurrent 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)
Deletes one or more records in the recordset.
TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);
Description
Use 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 marked 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 Meaning
arCurrent 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)
#8
用sql语句嘛,很简单,delete from yourtable,做数据库建议先学sql语句
#9
使用专用语句
Truncate Table TableName
一次全部删除表中记录,快速!!!
Truncate Table TableName
一次全部删除表中记录,快速!!!
#10
while not adotable1.eof do
begin
adotable1.first;
adotable1.delete;
adotable1.next;
end;
begin
adotable1.first;
adotable1.delete;
adotable1.next;
end;
#11
有没有什么更好的办法呀!
#12
tadoconnection.execute('delete from table');
#1
这到不知道!提!
/*************************************/
/*1、MY TOOL:*************************/
/*2、Delphi,Oracle,Sybase,C++/C*******/
/*3、PROJECT:*************************/
/*3、Boss*****************************/
/*4、为了五星的目标希望你早点结贴*****/
/*************************************/
下为我公司中餐定购点,大家随意随意.....
巴西小吃部:13033009888
阿根廷川味:13003059999
韩国料理城:3663371
英格兰拉面:3635476
西班牙火锅:3661693
中国大排挡:13956948888
/*************************************/
/*1、MY TOOL:*************************/
/*2、Delphi,Oracle,Sybase,C++/C*******/
/*3、PROJECT:*************************/
/*3、Boss*****************************/
/*4、为了五星的目标希望你早点结贴*****/
/*************************************/
下为我公司中餐定购点,大家随意随意.....
巴西小吃部:13033009888
阿根廷川味:13003059999
韩国料理城:3663371
英格兰拉面:3635476
西班牙火锅:3661693
中国大排挡:13956948888
#2
用sql语句
delete from table1;
delete from table1;
#3
adoquery1.close;
adoquery1.sql.clear;
adoquery1.sql.add('delete from table1');
adoquery1.open;
adoquery1.sql.clear;
adoquery1.sql.add('delete from table1');
adoquery1.open;
#4
TCustomADODataSet.DeleteRecords
Deletes one or more records in the recordset.
TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);
Description
Use 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 marked 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 Meaning
arCurrent 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)
Deletes one or more records in the recordset.
TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);
Description
Use 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 marked 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 Meaning
arCurrent 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)
#5
adoquery1.close;
adoquery1.sql.clear;
adoquery1.sql.add('delete from table1');
adoquery1.open;
adoquery1.sql.clear;
adoquery1.sql.add('delete from table1');
adoquery1.open;
#6
同意楼上,
#7
TCustomADODataSet.DeleteRecords
Deletes one or more records in the recordset.
TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);
Description
Use 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 marked 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 Meaning
arCurrent 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)
Deletes one or more records in the recordset.
TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);
Description
Use 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 marked 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 Meaning
arCurrent 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)
#8
用sql语句嘛,很简单,delete from yourtable,做数据库建议先学sql语句
#9
使用专用语句
Truncate Table TableName
一次全部删除表中记录,快速!!!
Truncate Table TableName
一次全部删除表中记录,快速!!!
#10
while not adotable1.eof do
begin
adotable1.first;
adotable1.delete;
adotable1.next;
end;
begin
adotable1.first;
adotable1.delete;
adotable1.next;
end;
#11
有没有什么更好的办法呀!
#12
tadoconnection.execute('delete from table');