Total :
/ Today :
/ Yesterday :
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
- AWS
- Kubernetes
- json
- jsp
- mongodb
- zombie-hit apartment
- post
- topologySpreadConstraints
- javascript
- 인생이재밌다
- git
- MySQL Error
- 예매로직
- spring
- chartjs
- ES6
- AWS RDS
- ssh
- spread operator
- Bootstrap
- Get
- html
- sessionStorage
- mysql
- terminationGracePeriodSeconds
- 영화예매
- AWS Route53
- node.js
- ajax
- Java
Archives
- Today
- Total
목록db (1)
jongviet
May 11, 2021 - MySQL DB 내 특정 값의 개수 조회 / 전체 개수 조회
*5월11일 -호텔 관리 프로그램 예제를 진행하면서 각 방의 availability를 int로 처리하였다. 최초 구상 시, 1은 빈방, 2는 입실중 상태, 3은 퇴실 후 청소전 상태와 같이 나타내려고 했기 때문이다. -따라서 전체방의 크기 중 1, 2, 3이 각각 몇개씩 있는지 DB 내에서 확인할 수 있다면 간략하게 객실현황을 나타낼 수 있다. public int simRoomSt() { String SQL = "select count(*) from room where roomStatus = 2"; //조건을 만족하는 값의 개수를 구하는 SQL문이다. roomStatus가 2인, 즉 입실중 상태의 모든 방의 개수를 구한다. try { pstmt = conn.prepareStatement(SQL); rs ..
MySQL, Oracle
2021. 5. 11. 23:50