My question is if in the declaration of the cursor we do not specify any parameter of its behavior, such as SCROLL
or LOCAL
or READ_ONLY
, what value will it take by default?
That is, if I write this
DECLARE nombreCursor CURSOR FOR sentencia
What parameter will it take by default?
In the documentation there is an interesting note:
The default contemplates two values
LOCAL
andGLOBAL
. This is configured at the leveldatabase
in the following way (we use as an exampleTempdb
):To know which is the default or to be more correct, which is the active default configuration, one way is to do the following:
Another way is to create a cursor
dummy
and see the properties of itThe exit:
In this example, we can confirm that the
default
configured mode isLocal