Declare
  enddate   date;
Begin
  
  enddate := to_date('20070701', 'yyyymmdd');
  
  select * from xxx 
         where mydate < enddate;
End;
我的问题很简单,只要能在PL/SQL窗口中运行看到结果就行了,声明成变量是因为后面的程序都会依赖于前面的日期变量