Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Microsoft SQL Server FETCH FIRST, FETCH PRIOR, and FETCH LAST – PB Docs 2021 – PowerBuilder Library

Microsoft SQL Server FETCH FIRST, FETCH PRIOR, and FETCH LAST – PB Docs 2021

Microsoft
SQL Server FETCH FIRST, FETCH PRIOR, and FETCH LAST

SQL Server support the FETCH FIRST, FETCH PRIOR, and FETCH LAST
statements in addition to the conventional FETCH NEXT statement.

What if you only enter FETCH?

If you only enter FETCH, PowerBuilder assumes FETCH NEXT.

Example

This cursor example illustrates how you can loop through a result
set. Assume the default transaction object (SQLCA) has been assigned valid
values and a successful CONNECT has been executed.

The statements retrieve rows from the employee table and then
display a message box with the employee name in each row that is
found.

Error checking

Although you should test the SQLCode after every SQL statement,
these examples show statements to test the SQLCode only to illustrate a
specific point.

See also

Microsoft SQL Server
FETCH

Microsoft SQL Server FETCH
NEXT


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x