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 28
28
29
29
SET ECHO ON
30
30
31
+ -- For plsql.js example for bind parameters
31
32
CREATE OR REPLACE PROCEDURE testproc (p_in IN VARCHAR2 , p_inout IN OUT VARCHAR2 , p_out OUT NUMBER )
32
33
AS
33
34
BEGIN
37
38
/
38
39
SHOW ERRORS
39
40
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
41
54
DROP TABLE j_purchaseorder;
42
55
CREATE TABLE j_purchaseorder
43
56
(po_document VARCHAR2 (4000 ) CONSTRAINT ensure_json CHECK (po_document IS JSON));
You can’t perform that action at this time.
0 commit comments