[ Connection ] 자바프로그램과 데이터베이스를 연결하여 사용하기 위해서는 무조건 Connection 객체가 필요하다. 특정 SQL 문장을 정의하고 실행시킬 수 있는 Statement 객체를 생성할 때 Connection 객체를 이용한다. public static void main(String[] args) throws SQLException { // 0. 객체생성 Connection con = null; Statement stmt = null; ResultSet rs = null; // 1. 드라이버 등록 try { Class.forName("oracle.jdbc.driver.OracleDriver"); System.out.println("[드라이버 등록 성공]"); // 2. db 연결 = c..