select id, pid, tid, num_pei, num_penzi, num_dou, num_geili, `type`, user_id, user_name, avatar, content, up_vote, down_vote, qq, email, ip, address, create_time, status from cms_comment insert into cms_comment pid, tid, num_pei, num_penzi, num_dou, num_geili, type, user_id, user_name, avatar, content, up_vote, down_vote, qq, email, ip, address, create_time, status, #{pid}, #{tid}, #{numPei}, #{numPenzi}, #{numDou}, #{numGeili}, #{type}, #{userId}, #{userName}, #{avatar}, #{content}, #{upVote}, #{downVote}, #{qq}, #{email}, #{ip}, #{address}, #{createTime}, #{status}, update cms_comment pid = #{pid}, tid = #{tid}, num_pei = #{numPei}, num_penzi = #{numPenzi}, num_dou = #{numDou}, num_geili = #{numGeili}, type = #{type}, user_id = #{userId}, user_name = #{userName}, avatar = #{avatar}, content = #{content}, up_vote = #{upVote}, down_vote = #{downVote}, qq = #{qq}, email = #{email}, ip = #{ip}, address = #{address}, create_time = #{createTime}, status = #{status}, where id = #{id} delete from cms_comment where id = #{id} delete from cms_comment where id in #{id} update cms_comment set up_vote=up_vote+1 where id=#{#id}