SQLResultSetShift

SQLResultSetShift[rs, num]
shifts the current position of a result set by num.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

In[1]:=
Click for copyable input

If you find that the examples in this section do not work as shown, you may need to install or restore the example database with the package, as described in Using the Example Databases.

Open a connection:

In[2]:=
Click for copyable input

Open a result set:

In[3]:=
Click for copyable input
Out[3]=

The initial position is 0:

In[4]:=
Click for copyable input
Out[4]=

Shift two rows:

In[5]:=
Click for copyable input
Out[5]=

The new position is 2:

In[6]:=
Click for copyable input
Out[6]=

Shift two rows again:

In[7]:=
Click for copyable input
Out[7]=

Now the position is 4:

In[8]:=
Click for copyable input
Out[8]=

Close the result set:

In[9]:=
Click for copyable input
In[10]:=
Click for copyable input
New to Mathematica? Find your learning path »
Have a question? Ask support »