on 2018 Jul 25 5:16 AM
I'm using 16.0.0.2673 and want to count the records that are exported by an UNLOAD SELECT statement. So I'm querying the @@rowcount global variable right after the statement.
However, @@rowcount seems to ignore the UNLOAD statement, i.e. its value is unchanged by the UNLOAD statement.
So do I need to count the number of rows myself?
I could not find any documentation of @@rowcount related to UNLOAD.
All too often, I miss the chance to look at the documentation of newer versions...
That quote is from to v17 "What's New" section:
Enhancements to the UNLOAD statement
@@rowcount global variable now incremented during unloading
The UNLOAD statement now sets the @@rowcount variable to the number of rows unloaded. See UNLOAD statement.
So, for v16 and below, apparently I have to count myself...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.