1)ORACLE中有IN这个东东
2)能通过,不用改

解决方案 »

  1.   

    select ddate,outputs,strunitno from factoryout 
    where reporttype=1 and ddate between to_date('2003-10-5','yyyy-mm-dd') and to_date('2003-10-31','yyyy-mm-dd')
     and strunitno in (select strunitno from unitinfo where supunitno=1) order by ddate,strunitno
      

  2.   

    谢谢,自己搞定了。不过还是谢谢大家。确实有IN这东东,楼上这位兄弟的语句是我第一次改后的样子,不行,得用两个TRIM才行。不过还是给分吧。这分好像很容易赚哦^_^