SQL命令未正确结束 pl_bgndate varchar2(20); pl_enddate varchar2(20); pl_tables varchar2(2000); pl_str varchar2(1000); begin pl_bgndate:=to_char(:pl_bgndate,'yyyy-mm-dd'); pl_enddate:=to_char(:pl_enddate,'yyyy-mm-dd'); pl_tables:=gettables('tsalsale',pl_bgndate,pl_enddate); pl_str:='select a.chcode,count(a.chcode) num,b.empname,sum(a.ssl) ssl from '||pl_tables||' a,tUsrEmployee b where a.tran=1 and a.orcode=6 and a.chcode=b.empcode and to_char(a.jzd,''yyyy-mm-dd'') between '''||pl_bgndate||''' and '''||pl_enddate||''' group by a.chcode,b.empname order by a.chcode'; end; 各位帮看看为什么执行时提示SQL命令未正确结束? ------解决方案--------------------