根本语句出错

基本语句出错点击右边红色标题查看本文完整版:基本语句出错基本语句出错,Declare enddate? date Begin en

基本语句出错
点击右边红色标题查看本文完整版:基本语句出错

基本语句出错,
Declare
enddate? date;
Begin

enddate := to_date('20070701', 'yyyymmdd');

select * from xxx
? where mydate < enddate;
End;


我的问题很简单,只要能在PL/SQL窗口中运行看到结果就行了,声明成变量是因为后面的程序都会依赖于前面的日期变量

------解决方法--------------------
PL/SQL中 不能用
select * from xxx?
? where mydate? < enddate;
如select * into .....
from xxxx?
where mydate? < enddate;


这里我想你可能要需要显示游标