목록DB연결 (2)
멋쟁이v의 개발일지
[목차]01. mysql 드라이버 로딩02. Connection 객체로 DB 연결03. Query 실행을 위한 준비(객체 생성)04. Query 실행05. Query 실행결과 사용06. 객체, DB연결 종료 01. mysql 드라이버 로딩라이브러리 사용(mysql-connector-java-8.0.28.jar)👉🏻Class.forName(”com.mysql.jdbc.Driver”); 02. Connection 객체로 DB 연결Connection 객체 생성➡️ Connection interface 데이터 타입으로 conn 객체참조변수 선언객체 생성을 위한 변수값 세팅(ip, port번호, db명, db접속id/pw) ➡️ getConnection 메소드는 static으로 선언되어서객체 생성 없이 Drive..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/zE3g2/btr95q8WgUI/i7JXZ6sPXWshZvOsdXzEK0/img.png)
[목차]01. mysql 드라이버 로딩02. Connection 객체로 DB 연결03. Query 실행을 위한 준비(객체 생성)04. Query 실행05. Query 실행결과 사용06. 객체, DB연결 종료 01. mysql 드라이버 로딩라이브러리 사용(mysql-connector-java-8.0.28.jar)👉🏻Class.forName(”com.mysql.jdbc.Driver”); 02. Connection 객체로 DB 연결Connection 객체 생성➡️ Connection interface 데이터 타입으로 conn 객체참조변수 선언객체 생성을 위한 변수값 세팅(ip, port번호, db명, db접속id/pw) ➡️ getConnection 메소드는 static으로 선언되어서객체 생성 없이 Drive..