I have CArray/CMap with IDs.
On the SQL Table there are: ID, Value, StartTime, EndTime.
I receive StartTime and EndTime and need to delete all IDs that appear on that CArray.
So there is a need for query such as:
“delete from table where id in ( list[0], list[1], list[2]. … list[n] ) and time between T1 and T2”
My problem is how to implement the “in (..)” how to transfer the IDs that on CArray ?
Using CDatabase.executeSQL(QUERY) with CommitTrans and CommitTrans
Thanks
The simple you can do is this (provided you have CArray and it is called arId):
For CMap replace the for(i = 0;…) with the POSITION pos = mapId.GetStartPosition() etc.