Hi,
This is not a question on Lazarus or Free Pascal but on database operation performance. I'd like to here your experiences.
What I want to do is to delete some records from data table (Firebird database).
I have two options, using "in" in SQL, and running several times.
First option's SQL is :
delete from ATable where Number in (3,45,12,44)
And second option is running following statements one by one:
delete from ATable where Number = 3;
delete from ATable where Number = 45;
delete from ATable where Number = 12;
delete from ATable where Number = 44;
If there are not much difference in performance, I prefer the second option, because I can put them in a stored procedure. The first option is not possible because of the "3,45,12,44" part (the procedure language seems to support defining array, but it is not possible to use array structure in the Lazarus application).