You can use Interactive SQL to return more than one result set from a procedure.
Prerequisites
There are no prerequisites for this task.
Context and remarks
By default, Interactive SQL does not show multiple result sets.
In Interactive SQL, connect to the database.
Click Tools » Options.
Click SQL Anywhere.
On the Results tab, click Show All Result Sets.
Click OK.
Example
The following procedure lists the names of all employees, customers, and contacts listed in the database:
CREATE PROCEDURE ListPeople() RESULT ( Surname CHAR(36), GivenName CHAR(36) ) BEGIN SELECT Surname, GivenName FROM Employees; SELECT Surname, GivenName FROM Customers; SELECT Surname, GivenName FROM Contacts; END; |
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |