select * from tStkJxcRptSouce201205 where rptdate =to_char(to_date(min(rptdate),'YYYY-MM-DD')-1,'YYYY-MM-DD') 
这里不能用min不知道怎么弄。。求大神修改