Notice
반응형
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- deque
- 문제풀이
- Algorithms
- input
- Oracle
- react
- node
- 이클립스
- jsp
- 책추천
- js
- SQL
- 정처산기
- HashMap
- IntelliJ
- 백준
- script
- 자료구조
- set
- java
- html
- npm
- TSX
- 수학
- Eclipse
- 에라토스테네스의 체
- Stack
- BREW
- googleChart
- 응용SW
Archives
- Today
- Total
개발하자
[SQLException] java.sql.SQLException: JDBC-90627:Not all parameters are bound. 본문
ERROR/SQL
[SQLException] java.sql.SQLException: JDBC-90627:Not all parameters are bound.
개발리미 2023. 9. 13. 16:15728x90
not all parameters are bound = 변수를 전부다 bound 하지 않았다는 뜻
public String insert(){
String insert = "";
insert += "INSERT INTO SUPPORT_T( ";
insert += "BUSI_SUPPORT_CD, ";
insert += "BUSI_SUPPORT_NM, ";
insert += "BUSI_SECTION_CD, ";
insert += "OPEN_YN, ";
insert += "REG_START_DT, ";
insert += "REG_END_DT, ";
insert += "BUSINESS_OUTLINE ";
insert += ") VALUES ( ";
insert += "?,?,?,?,?,?,?) ";
return insert;
}
깔끔하게 저장하려고 했는데 라인 정리가 안돼서 뒤죽박죽...
Integer result = 0;
result = jdbcTemplate.update(insert().toString()
, busi_cd
, busiSupportNm
, 0
, openYn
);
위 코드를 보면 ?가 7개 넣는 값은 4개!
이렇게 되면 bound 에러
개수를 잘 맞추자
728x90
반응형