2016년 1월 6일 수요일

오라클버전 P373 resources/mappers/replyMapper.xml의 일부

<select id="list" resultType="ReplyVO">
select
*
from
tbl_reply
where bno =
#{bno}
order by rno desc
</select>

<insert id="create">
insert into tbl_reply (rno, bno, replytext, replyer)
values (seq_reply.nextval, #{bno},#{replytext},#{replyer})
</insert>

<update id="update">
update tbl_reply set replytext = #{replytext},
updatedate = sysdate
where rno = #{rno}
</update>

<delete id="delete">
delete from tbl_reply where rno =#{rno}
</delete>

댓글 없음:

댓글 쓰기