在PL⼀SQL过程中如何输出SQL语句块

2025-03-22 20:33:15
推荐回答(1个)
回答1:

v_sql := 'select nvl(sum(componentqty),0) from mfg_tbl_info_wip_hourly_iiwhere lottype in v_lottypeand productname not like ''RW%''and stage not in (select distinct stage from probe_stage where type = ''ALL'')and adstatus != ''Bank''and histdate=to_char(sysdate,''yyyymmdd'')and hour= v_cuthour';dbms_output.put_line(v_sql); --执行execute immediate v_sql into v_eoh;