create or replace
PROCEDURE BANDIT(
rc1 in out spm.rctl)
IS
BEGIN
open rc1 for
"CREATE GLOBAL TEMP TABLE Bandi"
(TA_SERVICING_TYPE CHAR(2),
TA_TCV_PVD_UID_PHYS NUMBER(10,0),
TA_tcm_uid NUMBER(10,0),
TA_OPP_LOB_CODE VARCHAR2(50),
TA_MEM_ID VARCHAR2(80),
TA_MEM_FORMATTED_NAME VARCHAR2(64),
TA_MEM_DATE_OF_BIRTH DATE,
TA_cny_desc VARCHAR2(50),
TA_PVD_NAME VARCHAR2(64),
TA_dxc_code_display VARCHAR2(11),
TA_dxc_desc_SHORT VARCHAR2(50),
TA_TCM_DATE_ADMITTED DATE,
TA_TCM_DAYS_AUTHD DATE,
TA_TAU_LAST_UPDATE_DATE DATE)
on commit delete rows
I am trying ti create a temp table within a proc as shown above. Keep receiving errors. Thanks for your assistance in advance!
PROCEDURE BANDIT(
rc1 in out spm.rctl)
IS
BEGIN
open rc1 for
"CREATE GLOBAL TEMP TABLE Bandi"
(TA_SERVICING_TYPE CHAR(2),
TA_TCV_PVD_UID_PHYS NUMBER(10,0),
TA_tcm_uid NUMBER(10,0),
TA_OPP_LOB_CODE VARCHAR2(50),
TA_MEM_ID VARCHAR2(80),
TA_MEM_FORMATTED_NAME VARCHAR2(64),
TA_MEM_DATE_OF_BIRTH DATE,
TA_cny_desc VARCHAR2(50),
TA_PVD_NAME VARCHAR2(64),
TA_dxc_code_display VARCHAR2(11),
TA_dxc_desc_SHORT VARCHAR2(50),
TA_TCM_DATE_ADMITTED DATE,
TA_TCM_DAYS_AUTHD DATE,
TA_TAU_LAST_UPDATE_DATE DATE)
on commit delete rows
I am trying ti create a temp table within a proc as shown above. Keep receiving errors. Thanks for your assistance in advance!