sql-reply.xml > SPRINGBOOT

본문 바로가기
사이트 내 전체검색

SPRINGBOOT

sql-reply.xml

페이지 정보

profile_image
작성자 관리자
댓글 0건 조회 54회 작성일 24-06-13 09:36

본문

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"

"http://mybatis.org/dtd/mybatis-3-mapper.dtd">


<mapper namespace="web.mapper.ReplyMapper">


<select id="replyList" resultType="web.dto.ReplyDto">

select * from t_reply where bno = #{bno} order by rno desc

</select>


<insert id="replyInsert">

insert into t_reply 

(bno,replytext,replyer) 

values 

(#{bno},#{replytext},#{replyer})

</insert>


<update id="replyUpdate">

update t_reply set replytext = #{replytext}, updatedate = now() where rno = #{rno}

</update>


<delete id="replyDelete">

delete from t_reply where rno = #{rno}

</delete>

<select id="listPage" resultType="web.dto.ReplyDto">

select * from t_reply where bno = #{bno} order by rno desc limit #{cri.pageStart}, #{cri.perPageNum}

</select>


<select id="count" resultType="int">

select count(bno) from t_reply where bno =#{bno}

</select>


</mapper>

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

공지사항
자유게시판
질문답변
1:1문의

 

별명 : 터푸가위
주소 : 부산시 동래구 명장로20번길 90
대표 : 박규태
메일 : dancepkt@******.com

접속자집계

오늘
248
어제
285
최대
10,760
전체
277,854
Copyright © dancePKT . All rights reserved.