How to delete all records from a dataset selection ?
Posted: 20.10.2016, 05:19
Hi,
I know method Delete from Dataset to delete current record in a dataset. But if I want to delete all records from a SELECT * FROM <table> WHERE <condition> statment, how do you do ?
I doesn't want to iterate with Locate method, I would like to call only one Delete method from the dataset wich select stament was executed... May be I need to execute specific SQL stament ? Like DELETE FROM <table> WHERE <condition>, with a call to ExecuteDirect method from my database connection ?
Thank you for your answer.
Patrick
I know method Delete from Dataset to delete current record in a dataset. But if I want to delete all records from a SELECT * FROM <table> WHERE <condition> statment, how do you do ?
I doesn't want to iterate with Locate method, I would like to call only one Delete method from the dataset wich select stament was executed... May be I need to execute specific SQL stament ? Like DELETE FROM <table> WHERE <condition>, with a call to ExecuteDirect method from my database connection ?
Thank you for your answer.
Patrick