본문 바로가기
기록/Java&Spring&Eclipse

[Java/Spring] 자바 sql 오류 java.sql.SQLSyntaxErrorException: Incorrect number of arguments 해결 방법

by 자임 2022. 10. 7.

 

오류 : 
Caused by: java.sql.SQLSyntaxErrorException: Incorrect number of arguments for FUNCTION [FUNCTION name]; expected 2, got 3

원인 및 해결 :
해당 FUNCTION에 매개변수를 2개만 넘겨야 하는데 3개 넘겨서 나는 오류다. 개수 맞춰주면 해결됨.