thebarslider
Programmer
Hello,
I am writing a Java program to purge some data from a database. I already have a list of the id's that I wish to delete.
Is it possible to write a statement like:
delete from table where autoid in ...
Where the three dots would be an array I passed to the statement rather than having to create a single statement for each id as although this is easy to do using a loop it is inefficient.
Hope someone can help.
Many Thanks.
I am writing a Java program to purge some data from a database. I already have a list of the id's that I wish to delete.
Is it possible to write a statement like:
delete from table where autoid in ...
Where the three dots would be an array I passed to the statement rather than having to create a single statement for each id as although this is easy to do using a loop it is inefficient.
Hope someone can help.
Many Thanks.