我在Java中用代码实现了,但是由于用的Hibernate1,所以他执行
SELECT *  
  FROM (SELECT t.main_sheet_flow_no,t.mobile_tele_no,'这里为数组vestAreaName的值','这里为samTime'FROM tbl_main_sheet t,tbl_departments m where t.main_status='22' and t.sheet_category_id in ('1','3')  
  and to_date(t.deal_time,'yyyy-mm-dd hh24:mi:ss') >= to_date('这里为数组sheetTime[0]','yyyy-mm-dd hh24:mi:ss')  
  and to_date(t.deal_time,'yyyy-mm-dd hh24:mi:ss') < (to_date('这里为数组sheetTime[1]','yyyy-mm-dd hh24:mi:ss')+10)  
  and t.handle_dept= m.department_id  
  and (t.handle_dept='handleDept数组[0]' or t.handle_dept='handleDept数组[1]' or t.handle_dept='handleDept数组[2]')   ORDER BY dbms_random.value)
  WHERE rownum <= 10
会报错,而且这条SQL语句就是Hibernate中打印出来的,可以在数据库中查询并且插入另外一张表,就是通过程序调用报错,没有办法解决。求高手!!!!具体错误如下:
org.springframework.orm.hibernate.HibernateQueryException: in expected: 明天给补上后面的,