I'm having trouble with using/calling stored procedures in Oracle DB. The stored procedure that return a data result set in table form are easy to use. I've used the database query browser with no problem. My problem is that I don't know how or if Ignition will allow me to use stored procedures with in and out parameters.
If there are many output parameters, I agree - there isn't really a way to return them. But what does work in SQL Server is something like
-- could also be a table
DECLARE @myVar BIGINT;
EXEC [schema].[procedureName]
@paramName1 = :ParamName1,
@paramName2 = :ParamName2,
...
@paramNameN = @myVar -- @paramNameN is OUTPUT
SELECT @myVar;
-- or SELECT * FROM @myVar; if @myVar is a table
Then you would set the query type based on if you return one value or many. This doesn't really answer the Oracle question, but is a SQL Server equivalent
I avoid brand-specific functionality. You are using a SQL script. Vanilla JDBC only explicitly supports SQL statements. Some JDBC drivers support scripts, but they only work by accident in Ignition.
And Ignition will seriously screw up your NQ if you have a colon-delimited parameter embedded in a SQL comment.
I strongly recommend you not use this technique, to protect your future self from changes in JDBC drivers and/or Ignition implementation details.
(Comments, DECLARE, conditional blocks, and any use of @ parameters are features of SQL scripts. Do not use them from Ignition. If you absolutely need a script, define it entirely in the database.)