Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Location
    New Jersey
    Posts
    4

    Lightbulb Unanswered: @@ROWCOUNT Equivalence in DB2

    Does anyone know what is the equivalent to @@ROWCOUNT function that is in MSSQL server.

    I am trying to delete 20000 rows in a UDB database. I want to delete these records in 2 batches of 10000.

    If anyone knows about this and can help me, it will be greatly appreciated.

    Thanks in advance.

    Alee

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    Re: @@ROWCOUNT Equivalence in DB2

    rownumber()

    Cheers

    Sathyaram

    Originally posted by aleeali
    Does anyone know what is the equivalent to @@ROWCOUNT function that is in MSSQL server.

    I am trying to delete 20000 rows in a UDB database. I want to delete these records in 2 batches of 10000.

    If anyone knows about this and can help me, it will be greatly appreciated.

    Thanks in advance.

    Alee
    Visit the new-look IDUG Website , register to gain access to the excellent content.

Posting Permissions

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