此处给出例子,具体根据业务需求 create or replace procedure P_CART_Sheet1(p_id in NUMBER) is--车辆管理功能v_str varchar2(4000);v_building_id number;begin --获取 building_id select t.expandtype into v_str from t_excel_import_datasrc t where t.id = p_id; v_building_id := to_n
select * from sh_gonghuo_renyuan as of timestamp to_timestamp('2017-11-17 16:00:00','yyyy-mm-dd hh24:mi:ss'); --3.恢复删除且已提交的数据 alter table sh_gonghuo_renyuan enable row movement; --flashback table sh_gonghuo_renyuan to timestamp to_timestamp('2017-11-
create or replace procedure remove_refund_his_pro isbegin declare cursor refund_query_cur is select rowid from ucmp_realtime_refund_query t1 where t1.apply_tm<= TRUNC(ADD_MONTHS(SYSDATE, -3),'DD') AND ROWNUM <= '100000000'; TYPE rowid_table_type is