본문 바로가기

taesik

검색하기
taesik
프로필사진 taesikk

  • 분류 전체보기 (59)
    • debug (2)
      • web (1)
      • Spring Boot (1)
    • Concepts (14)
      • TypeScript (5)
      • Java (1)
      • ElasticSearch (6)
      • DB2 (IBM RDBMS) (2)
    • functions and trick (35)
      • typescript_javascript (31)
      • RUST (4)
    • ElasticSearch (1)
    • theory for interview (4)
      • web (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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
  • IBM
  • JDBC
  • useEffect
  • descendingOrder
  • TypeScript
  • codewars
  • react
  • isSquare
  • manifest.json
  • java api
  • type
  • TABLESPACE
  • custom hook
  • DB2
  • react hook
  • codewar
  • Debug
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바