DB2: Purge large number of records from table

后端 未结 6 1589
独厮守ぢ
独厮守ぢ 2021-01-01 02:36

I am using DB2 9.7 FP5 for LUW. I have a table with 2.5 million rows and I want to delete about 1 million rows and this delete operation is distributed across table. I am de

6条回答
  •  滥情空心
    2021-01-01 03:26

    delete from ordpos where orderid in ((select orderid from ordpos where orderid not in (select id from ordhdr) fetch first 40000 rows only));
    

    Hoping this will resolve your query :)

提交回复
热议问题