PL / SQL:ORA-00933命令未正确结束

时间:2010-07-04 20:05:37

标签: sql plsql ora-00933

你好我正在尝试这个查询:

DECLARE
v_week NUMBER;

BEGIN
SELECT WEEK FROM WEEKDESTINATION INTO (v_week)
WHERE STARTDATE BETWEEN '02-JAN-2010'AND '09-JAN-2010';
END;

但它会引发以下错误: PL / SQL:ORA-00933:SQL命令未正确结束

请帮助

1 个答案:

答案 0 :(得分:6)

应该是

SELECT WEEK INTO v_week FROM WEEKDESTINATION
where .......