Get the App
SLTechnology News&Howtos  ›  Database  › 

ORACLE stored procedure in keyword is used

Shulou Source: shulou.com Published: 2022-06-01 02:50:17 10月06日 Update

I. description of the problem:

Write a stored procedure (only half of it, which can explain the proposition)

CREATE OR REPLACE PROCEDURE "MONTH_RPT_CENTER_STU_DATA_PROC" (centerIds in VARCHAR2) AS mlockdate date BEGIN/* creator: fengcl creation time: January 23, 2018.UPDAT: update time: parameter: central number (string type) function: when calling, delete the data of the specified center from the intermediate table first Then re-query the data inserted into the designated center into the intermediate table * /-- get the lock date of the monthly report select trunc (sysdate,'mm') + to_number (name) into mlockdate from mdm_dic_option where code='monthReportDate' and dic_code='system_set_001' If mlockdate=add_months (trunc (sysdate,'mm'),-1) and RPT_DATE

Tags: Procedure parameter time storage data update query function number scheme step normal middle creator function character string date monthly report type Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Apple MariaDB vpn Docker