GetConnection()

Jmnote (토론 | 기여)님의 2015년 9월 8일 (화) 09:29 판 (새 문서: ==개요== ;DriverManager.getConnection() <source lang='java'> Connection conn = DriverManager.getConnection( "jdbc:somejdbcvendor:other data needed by some jdbc vendor", "...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

DriverManager.getConnection()
Connection conn = DriverManager.getConnection(
     "jdbc:somejdbcvendor:other data needed by some jdbc vendor",
     "myLogin",
     "myPassword" );
try {
     /* 커넥션 이용 */
} finally {
    // 끝나면 닫기
    try { conn.close(); } catch (Throwable ignore) { /* Propagate the original exception
instead of this one that you may want just logged */ }
}

2 같이 보기

3 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}