I have a table with over 3000000 entries, and i need to delete 500000 of them with given ID s. My idea is to create a query like:
DELETE FROM TableName WHERE ID IN (id1, id2, ...........)
which I generate with a simple C# code. The question is: is there a limit to how many values I can set in the array of ID s.
如果有人能更好地实现这一删除,那么我就对想法持开放态度。