Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2002
    Location
    Delaware
    Posts
    186

    Unanswered: Delete with a commit statement

    I need to delete about 2 million records in a table in DB2 v7.x, If there a way to code an SQL that would do a commit every 100000 rows, so it would not blow out the transaction logs?



    Any help would be appreciated.

  2. #2
    Join Date
    Oct 2003
    Posts
    3

    Re: Delete with a commit statement

    This is what would do the job for Oracle, i hope it might help you


    delete from table
    where rownum<100000;
    commit;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •