我正在使用 Oracle SQL Developer Scratch Editor 工具。有几个小错误,我不知道如何解决。
--SQLDEV:Following Line Not Recognized
WHILE @I <= @PAT_CNT
--SQLDEV:Following Line Not Recognized
BEGIN
SELECT PAT_NUMBER ,
PATIENT_ID ,
MRN ,
LAST_NAME ,
FIRST_NAME ,
UNIT_CODE ,
NURSING_UNIT ,
SDT ,
EDT ,
SHIFT_CODE ,
START_TIME ,
END_TIME
INTO v_PAT_NUMBER,
v_PATIENT_ID,
v_MRN,
v_LAST_NAME,
v_FIRST_NAME,
v_UNIT_CODE,
v_NURSING_UNIT,
v_SDT,
v_EDT,
v_SHIFT_CODE,
v_START_TIME,
v_END_TIME
FROM tt_v_PATS
WHERE PKEY = v_I;
BEGIN
v_L_CUR_DATE := TRUNC_DATE(v_P_START_DATE) ;
END;
--SQLDEV:Following Line Not Recognized
WHILE @L_CUR_DATE <= OPTC.TRUNC_DATE(@P_END_DATE)
--SQLDEV:Following Line Not Recognized
BEGIN