Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execute stored procedure with parameters

I have stored procedure and should get its result.

From debugging of Java part:

return getJdbcTemplate().call(newCallableStatementCreator(inParams), getDeclaredParameters());

I've discovered procedure's name and its parameters.

How can I execute this procedure with these parameters from e.g. Oracle Sql Developer.

Thank you.

like image 581
sergionni Avatar asked May 17 '11 17:05

sergionni


1 Answers

In SQL Developer you can run a stored procedure from the SQL Worksheet window like this:

exec myproc (myparam1 => 'a', myparam2 => 2);

using named parameters, or using position parameters:

exec myproc ('a', 2);

Press the green "Run Statement" button in the toolbar to run the command.

like image 162
Tony Andrews Avatar answered Oct 30 '22 21:10

Tony Andrews