File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 2828
2929SET ECHO ON
3030
31+ -- For plsql.js example for bind parameters
3132CREATE OR REPLACE PROCEDURE testproc (p_in IN VARCHAR2 , p_inout IN OUT VARCHAR2 , p_out OUT NUMBER )
3233AS
3334BEGIN
3738/
3839SHOW ERRORS
3940
40- -- JSON with Oracle Database 12.1.0.2
41+ -- For refcursor.js example of REF CURSORS
42+ CREATE OR REPLACE PROCEDURE get_emp_rs (p_sal IN NUMBER , p_recordset OUT SYS_REFCURSOR)
43+ AS
44+ BEGIN
45+ OPEN p_recordset FOR
46+ SELECT first_name, salary, hire_date
47+ FROM employees
48+ WHERE salary > p_sal;
49+ END;
50+ /
51+ SHOW ERRORS
52+
53+ -- For selectjson.js example of JSON with Oracle Database 12.1.0.2
4154DROP TABLE j_purchaseorder;
4255CREATE TABLE j_purchaseorder
4356 (po_document VARCHAR2 (4000 ) CONSTRAINT ensure_json CHECK (po_document IS JSON));
You can’t perform that action at this time.
0 commit comments