마이바티스
-
[Mybatis] 마이바티스로 INSERT, UPDATE, DELETE 하는 방법º Server º/MyBatis 2023. 9. 19. 23:33
INSERT, UPDATE, DELETE UPDATE, INSERT, DELETE 추가하기 위해 공식사이트에서 기본적으로 제공해주는 코드를 추가해줍니다. mybatis 공식사이트 : https://mybatis.org/ insert into Author (id,username,password,email,bio) values (#{id},#{username},#{password},#{email},#{bio}) update Author set username = #{username}, password = #{password}, email = #{email}, bio = #{bio} where id = #{id} delete from Author where id = #{id} mybatis mybatis.or..