Named Jdbc Template

어겐어갠·2022년 4월 13일
0
int update = jdbcTemplate.update("insert into customers(customer_id, name, email, created_at) values (UUID_TO_BIN(:customerId), :name, :email, :createdAt)",
                toParamMap(customer));

map을 통해 sql 쿼리문에 파라미터를 key-value로 맞춰서 넣어줄 수 있다.

profile
음그래

0개의 댓글