要访问表,只需将 currentSchema
参数添加到 URL:
jdbc:db2://host:50000/dbname:currentSchema=schemaname;
但它不适用于存储过程。信息中心说我也应该设置当前路径。可以在jdbc URL中设置吗?
最佳答案
属性名称为currentFunctionPath
:
jdbc:db2://host:50000/dbname:currentSchema=schemaname;currentFunctionPath=blah
关于java - 在 jdbc url 中设置当前路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21704544/