Notice
Recent Posts
Recent Comments
Link
«   2025/03   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Tags
more
Archives
Today
Total
관리 메뉴

WON.dev

Comment.xml 본문

JSP/BBS

Comment.xml

GAWON 2023. 6. 9. 17:50
<?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="org.joonzis.mybatis.comment"> 
	<select id="insertComment_t" parameterType="org.joonzis.ex.CVO">
       INSERT INTO comment_t VALUES(
           comment_seq.nextval,
           #{writer},
           #{content},
           #{pw},
           #{ip},
            sysdate,
           #{b_idx}
        )
    </select>
    
    <select id="getCommentList" resultType="org.joonzis.ex.CVO" parameterType="int">
    	select * from comment_t where b_idx=#{b_idx}
    </select>
    
	<delete id="deleteComment_t" parameterType="int">
		DELETE  FROM comment_t WHERE c_idx=#{c_idx} 
	</delete>
	
	
</mapper>

'JSP > BBS' 카테고리의 다른 글

download  (0) 2023.06.09
sqlmap.xml  (0) 2023.06.09
bbs.xml  (0) 2023.06.09
DBService  (0) 2023.06.09
Paging  (0) 2023.06.09