Returning procedure results in parameters

Procedures return results to the calling environment in one of the following ways:

See ”Returning procedure results in parameters” in SQL Anywhere Server - SQL Usage.

Sybase IQ example

NoteFor examples, use the Sybase IQ demo database iqdemo.db.

CREATE PROCEDURE SalaryList (IN department_id INT)RESULT ( "Employee ID" INT, "Salary" NUMERIC(20,3) )BEGINSELECT EmployeeID, SalaryFROM EmployeesWHERE Employees.DepartmentID = department_id;END