You can use Interactive SQL to return more than one result set from a procedure.
Prérequis
There are no prerequisites for this task.
Contexte et remarques
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.
Exemple
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; |
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |