로딩
티스토리 데이터 처리 중입니다.

[DB] JDBC 프로그램 순서 7단계

 [DB] JDBC 프로그램 순서 7단계

[목차]01. mysql 드라이버 로딩02. Connection 객체로 DB 연결03.

Query 실행을 위한 준비(객체 생성)04. Query 실행05.

Query 실행결과 사용06. 객체, DB연결 종료 01. mysql 드라이버 로딩라이브러리 사용(mysql-connector-java-8.0.28.jar)cClass.forName(”com.mysql.jdbc.Driver”); 02.

Connection 객체로 DB 연결Connection 객체 생성️ Connection interface 데이터 타입으로 conn 객체참조변수 선언객체 생성을 위한 변수값 세팅(ip, port번호, db명, db접속id/pw) ️ getConnection 메소드는 static으로 선언되어서객체 생성 없이 Drive.....