Ers*_*har 1 java oracle database-connection try-catch
我想用java连接oracle数据库。我使用这个代码:
url = statement;
try {
stmt = connection.createStatement();
rset = stmt.executeQuery(url);
} catch (Exception e) {
// what can I put here?
}
Run Code Online (Sandbox Code Playgroud)
当我的语句在 oracle 中导致错误时,我想得到错误消息。我怎样才能做到这一点?
| 归档时间: |
|
| 查看次数: |
9588 次 |
| 最近记录: |