mapping中insert语句
程序员文章站
2022-03-22 08:41:20
...
<!-- 新增学校简介信息 -->
<insert id="insertSchoolBrief" parameterType="com.zichen.xhkq.pojo.SchoolBrief" >
INSERT INTO `school_brief`(
`title`,`creatDate`,`brief`,`content`,`schoolId`,`schoolName`,`author`,
`schoolAddress`,`schoolPhone`,`schoolEmail`,`priseCount`
) VALUES(
#{title},NOW(),#{brief},#{content},#{schoolId},#{schoolName},#{author},
#{schoolAddress},#{schoolPhone},#{schoolEmail},#{priseCount}
)
</insert>
上一篇: 五子棋的彩蛋——背景音效