DB/MySQL
[My-SQL] Insert 한 값의 AUTO_INCREMENT된 값 가져오기
서견
2023. 1. 30. 00:11
useGeneratedKeys="true" keyProperty="pNo"
xml 파일의 insert 구문에 위에 항목 추가하기. (추가 안하면 0값 들어감 ;; )
KeyProperty 에는 auto_increment 로 선언된 column명을 입력한다.