JDBC의 개요
Java Database Connectivity의 약자임
자바 표준 데이터베이스 인터페이스를 뜻하며 자바 프로그램과 데이터베이스를 연결하는 하나의 통로역활.
db 사용 절차
드라이버 로딩
Class.forName(드라이브명)
연결객체 생성
Connection conn=
DriverManager.getConnection(url,id.pwd)
Statement생성
Statement stmt = conn.createStatement();
PrepareStatement pstmt = conn.prepareStatement()
SQL 실행
Select 문자 : pstmt.executeQuery()
Insert,Update,Delete : pstmt.executeUpdate()
'-Java' 카테고리의 다른 글
CSS PT자료 (0) | 2014.10.28 |
---|---|
HTML (0) | 2014.10.24 |
PL/SQL Cursor (0) | 2014.10.21 |
구글링 잘하는 방법 (0) | 2014.10.20 |
형 변환 함수 (0) | 2014.10.14 |