Using Oracle ref cursor in Java without Oracle dependency

后端 未结 2 2012
深忆病人
深忆病人 2021-01-11 17:22

According to google and some other sources (e.g., http://www.enterprisedt.com/publications/oracle/result_set.html), if I want to call a stored-function that returns a ref cu

相关标签:
2条回答
  • 2021-01-11 17:27

    Have you tried java.sql.Types.OTHER? It might work. API says, it's for database specific types.

    0 讨论(0)
  • 2021-01-11 17:48

    Constant OracleTypes.CURSOR is -10. Quite ugly solution but you can just write -10 there or create your own constant which value is -10.

    0 讨论(0)
提交回复
热议问题