⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

Moving Between Results with nextRowset()

The nextRowset() method is used when a single query or a stored procedure returns more than one result set (e.g., when you execute two SELECT statements simultaneously). The method moves the pointer to the next available data set, allowing you to read different tables without having to re-establish a connection or send new commands. If the next rowset exists, it returns true, otherwise false.

EXAMPLE
RESULT
The result will be displayed here...

Practical Application: We most commonly use this method for complex reports where the database simultaneously returns, for example, a list of users and company statistics. Check the process at home by following these steps: