问题描述
这是我完整的查询
select batch_upload_id from
(select batch_upload_id from cor_branch_upload
order by BATCH_UPLOAD_ID desc)
where rownum = 1
解决方法
尝试
select batch_upload_id from
(select batch_upload_id
from cor_branch_upload
order by TO_NUMBER(BATCH_UPLOAD_ID) desc)
where rownum = 1