0

I am executing an update statement through SQLJ:

#sql [connCtx] {
    UPDATE
        MYTABLE 
    SET
        MYCOLUMN = null
    WHERE
       MYCOLUMN IS NOT NULL
};

Is there a way to retrieve the number of affected rows?

AngocA
  • 7,655
  • 6
  • 39
  • 55
Jack
  • 2,937
  • 5
  • 34
  • 44

1 Answers1

1

without having your java code I think that is the correct way:

System.out.println(exec_context.getUpdateCount( ));
nano_nano
  • 12,351
  • 8
  • 55
  • 83
  • 1
    +1, Its there: http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/tjvsjxcn.htm – nakosspy May 27 '13 at 10:41