We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab1facd commit 4582aa4Copy full SHA for 4582aa4
examples/demo.sql
@@ -28,6 +28,7 @@
28
29
SET ECHO ON
30
31
+-- For plsql.js example for bind parameters
32
CREATE OR REPLACE PROCEDURE testproc (p_in IN VARCHAR2, p_inout IN OUT VARCHAR2, p_out OUT NUMBER)
33
AS
34
BEGIN
@@ -37,7 +38,19 @@ END;
37
38
/
39
SHOW ERRORS
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
54
DROP TABLE j_purchaseorder;
55
CREATE TABLE j_purchaseorder
56
(po_document VARCHAR2(4000) CONSTRAINT ensure_json CHECK (po_document IS JSON));
0 commit comments