欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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>

 

相关标签: insert