Primer Commit

This commit is contained in:
2023-06-08 11:55:59 -03:00
commit a269361962
432 changed files with 203156 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
--------------------------------------------------------
-- DDL for Function FNC_BRANCHES_QUERY
--------------------------------------------------------
CREATE OR REPLACE EDITIONABLE FUNCTION "ENVX_OPER"."FNC_BRANCHES_QUERY" (
pi_branches_jsonc IN VARCHAR2
) RETURN CLOB AS
v_query CLOB;
v_select VARCHAR2(4000);
BEGIN
v_query := q'~SELECT branch_name, branch_name as id_branch FROM JSON_TABLE(JSON(:~'|| pi_branches_jsonc || q'~), '$.branch[*]'
COLUMNS (
branch_name VARCHAR2(4000) PATH '$.name'
));~';
RETURN v_query;
END;
/