begin写错位置了DECLARE
v_count NUMBER(4);
begin
select count(*) into v_count from DM_STAGING_R2.TEMP_288_UPDATE where STUDY_KEY=104133;
DBMS_OUTPUT.put_line( to_char(v_count));
end;
v_count NUMBER(4);
begin
select count(*) into v_count from DM_STAGING_R2.TEMP_288_UPDATE where STUDY_KEY=104133;
DBMS_OUTPUT.put_line( to_char(v_count));
end;
DECLARE v_count NUMBER(4);
begin
select count(*) into v_count from DM_STAGING_R2.TEMP_288_UPDATE where STUDY_KEY=104133;
DBMS_OUTPUT.put_line( to_char(v_count));
end;