Jack
Jack

Reputation: 3059

Get the number of affected rows in SQLJ update statement

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?

Upvotes: 0

Views: 416

Answers (1)

nano_nano
nano_nano

Reputation: 12523

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

System.out.println(exec_context.getUpdateCount( ));

Upvotes: 1

Related Questions