Stored Procedure Configuration in SqlDeveloper Database

Certified Senior Developer

Hi All,

For my requirement , I have to create a stored procedure in database which executes a sql query.

And I have to execute that store procedure in appian process model and have to save that output in  process variable to proceed further.

While creating the stored procedure in Database ,I am facing some difficulties.

If I just run the sql query in DB by passing value for input(task_id = 261),then it gives me output of 16 rows with 22 columns , I want that to be saved as output in my process variable as a result.

For this query I written below code to create store proc,

create or replace procedure test
(
i_task_id in NUMBER
)
AS
BEGIN
select column1,column2,column3,.... from xyz where task_id = i_task_id;
END;

But this shows me the error like PLS-00428: an INTO clause is expected in this SELECT statement.

Can anyone kindly help me to solve this.Thanks in Advance.

  Discussion posts and replies are publicly visible