2 w1506352784 w1506352784 于 2016.09.22 14:10 提问

SQLSyntaxErrorException: ORA-00907: 缺失右括号

select * from ( select a.*, ROWNUM rnum from ( select site_code,shop_order,target_qty,start_date,close_date,sales_order,customer_code,item_code,status ,remark,create_by,create_time,update_by,update_time from SHOP_ORDER WHERE shop_order = ? and start_date between to_date(?,'yyyy/mm/dd hh24:mi:ss') and close_date between to_date(?,'yyyy/mm/dd hh24:mi:ss') and status = ? ) a where ROWNUM < ?) where rnum >= ?

大神大牛帮帮忙。

1个回答

seeze
seeze   2016.09.22 14:19
已采纳

between...and又写错了
start_date between to_date(?,'yyyy/mm/dd hh24:mi:ss') and to_date(?,'yyyy/mm/dd hh24:mi:ss')

Csdn user default icon
上传中...
上传图片
插入图片