I am writing an update query with IN clause in which I am passing List
update table set postcode={#postcode} where id in
<foreach collection="addresses" index="index" item="item" open="("
separator="," close=")">#{item}</foreach>
This runs fine when I have less than 1000 records in addresses.If there are more than 1000 records I get below error:
ORA-01795: maximum number of expressions in a list is 1000. How can this be handled?I came across some threads where they have handled in hibernate.How can I handle it with myibatis with more than 1000 records.