使用 PLSQL 过程未将记录保存在 table 中

Record not getting saved in table with PLSQL procedure

我正在尝试在 DELIVERY_DETAILS 中创建记录,但在 table.Running 中没有保存记录,查询单独保存了记录。 编译成功。

    CREATE OR REPLACE procedure CreateShipmentLinesTest

IS

BEGIN

INSERT INTO WSH_DELIVERY_DETAILS("DELIVERY_DETAIL_ID","SALES_ORDER_NUMBER","SALES_ORDER_LINE_NUMBER","SOURCE_SHIPMENT_NUMBER","SOURCE_SHIPMENT_ID","ORGANIZATION_ID",
"SOURCE_LINE_TYPE","CREATED_BY","SOURCE_LINE_ID","SHIP_FROM_LOCATION_ID","REQUESTED_QUANTITY","REQUESTED_QUANTITY_UOM",
"CREATION_DATE","LAST_UPDATE_DATE","LAST_UPDATED_BY","OBJECT_VERSION_NUMBER") values (007023,'AK_JAN02_2019','1','1.1.1',20001,207,'SALES_ORDER',1006,4602,207,250,'Ea','01-MAR-96 12.00.00.000000000 AM','06-FEB-17 01.10.16.000000000 AM'
,'FUSION',2);
COMMIT;

BEGIN
  CreateShipmentLinesTest;
END;
END;
/

编译只是为了编译存储过程。这不会执行您的存储过程。

为了执行存储过程,您需要运行您的过程:

exec CreateShipmentLinesTest;

BEGIN
  CreateShipmentLinesTest;
END;