본문 바로가기 메뉴 바로가기

Data Makes Our Future

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Data Makes Our Future

검색하기 폼
  • 분류 전체보기 (740)
    • Data (18)
      • Statistics (10)
      • Analysis (8)
    • SQL (24)
      • Organize (3)
      • Install (2)
    • R (58)
      • Collection (4)
      • Process (33)
      • Analysis (11)
      • Visualize (4)
      • Install (3)
    • Python (56)
      • Collection (10)
      • Process (27)
      • Visualize (2)
      • Install (3)
    • Web (164)
      • API (16)
      • Spring (58)
      • JAVA (49)
      • Infra (11)
    • PS (366)
      • Algorithm (45)
      • Problem_Solving (311)
      • PS_Note (7)
    • Books (35)
    • ADsP (4)
    • eTc (15)
  • 방명록

mysql (2)
[JDBC] JAVA JDBC(select, insert, delete, update)

| JAVA JDBC Spring에서는 Mybatis를 주로 사용하지만,JAVA에서 JDBC를 사용할 경우 자주 헷갈리고, 가물가물할 때가 있다.. 바로 그 때를 위해!!!기본적인 내용들을 정리해보려고 한다. Database는 MySQL를 사용하였다. || JDBC 작업 순서 1. Driver Loading (Vendor API) 2. DB 연결 (Connection 생성) 3. SQL 실행 준비3-1. SQL 작성. (Insert, Update, Delete, Select) 3-2. Statement 생성 (Statement, PreparedStatement) 4. SQL 실행4-1. Insert, Update, Delete int x = stmt.execteUpdate(sql); int x = pst..

Web 2020. 10. 22. 12:33
[Node.js] mySQL 연동

.Install mySQL module from npm- mySQL module 설치 npm i mysql .mySQL 연동 123456789101112131415161718var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', user : '', password : '', database : 'fintech'}); connection.connect(); var query = 'select * from fintech.user'connection.query(query, function (error, results, fields) { if (error) throw error; console.log('..

Web 2020. 6. 22. 14:58
이전 1 다음
이전 다음
최근에 올라온 글
최근에 달린 댓글
링크
  • Gitbook
  • resume
Total
Today
Yesterday
TAG
  • DFS
  • R
  • C
  • c++
  • java
  • dp
  • BOJ
  • spring
  • PYTHON
  • 백준
  • coding
  • 시뮬레이션
  • BFS
  • DATA
  • Algorithm
more

Blog is powered by Tistory / Designed by Tistory

티스토리툴바