如何在不出错的情况下将 clob 传递给系统 rpocedure?
我试图通过
CALL SYS.GET_PROCEDURE_OBJECTS(CREATE PROCEDURE "IA_ATP"."ia_xsjob.xsjob_procedures_folder::atp_procedure" ( )
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
AS BEGIN
DROP TABLE IA_ATP.ATP;
CREATE COLUMN TABLE IA_ATP.ATP AS (SELECT ATP_VIEW.*, UTCTOLOCAL(CURRENT_UTCTIMESTAMP,'EST') AS CREATE_TS FROM IA_ATP.ATP_VIEW WHERE
OPEN_PRICE_REQUESTS <>0
OR TOTAL_ON_HAND <> 0
OR OPEN_CUSTOMER_ORDERS <> 0
OR OPEN_CUSTOMER_DELIVERIES <> 0
OR OPEN_OUTBOUND_STOS <> 0
OR ATP <> 0
OR NEGATIVE_ATP <> 0
OR BLOCK_STOCK <> 0
);END;