[ot-video type=”youtube” url=”https://youtu.be/UHsxYHKOjE8″]

[button link=”https://goo.gl/1oSha6″ icon=”fa-play” side=”left” target=”_blank” color=”b70900″ textcolor=”ffffff”]유튜브 JDBC 프로그래밍 강좌 [/button]

 

데이터베이스 연결하기

[blockquote style=”1″]
초보자를 위한 잠자리 JDBC 프로그래밍 강좌입니다.
[/blockquote]

오라클 데이터베이스 연결 예제 #1

import java.sql.*;

public class OracleConnection {
  //  Interface Connection
  public static Connection getConnection(){
    Connection con = null;
    try{
      Class.forName("oracle.jdbc.driver.OracleDriver");
    }catch(ClassNotFoundException ce){
      System.out.println("오라클 드라이버의 로딩에 실패했습니다.");
    }
    System.out.println("오라클 드라이버의 로딩에 성공했습니다.");

 

<저작권자 ⓒ잠자리(jamjalee.com) 무단 전재-재배포 금지>

[button link=”https://www.jamjalee.com/?p=1031″ icon=”fa-fast-forward” side=”right” target=”_self” color=”232323″ textcolor=”ffffff”]다음 페이지 [/button]