Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- manifest.json
- type
- useEffect
- codewars
- Debug
- DB2
- react
- TABLESPACE
- JDBC
- react hook
- IBM
- custom hook
- codewar
- java api
- TypeScript
- isSquare
- descendingOrder
Archives
- Today
- Total
목록java api (1)
taesik
JDBC
import java.sql.*; 드라이버 로딩 Connection 객체 생성 Statement 객체 생성 / 질의 수행 SQL문에 결과가 있다면 ResultSet에 저장 모든 객체를 닫는다. DriverManager를 이용해서 Connection 인스턴스를 얻는다. Connection 을 통해서 STatement를 얻는다. DriverManager -> Connection ->Statement -> ResultSet 닫을 때는 거꾸로 순서로 닫아줘야 한다. IMPORT import.java.sql.*; 드라이버 로드 Class.forName("com.mysql.jdbc.Driver"); Connection 얻기 String dburl = "jdbc"mysql://localhost/dbName"; Con..
카테고리 없음
2020. 10. 1. 17:31