随笔分类 -  mybatis

摘要:直接判断不生效 如: <if test="sort == '1'"> score desc, </if> mybatis 映射文件中,if标签判断字符串相等,两种方式:因为mybatis映射文件,是使用的ognl表达式,所以在判断字符串sex变量是否是字符串Y的时候使用 如: <test="sex= 阅读全文
posted @ 2021-09-29 10:00 zagwk 阅读(1002) 评论(0) 推荐(0)
摘要:<insert id="add" parameterType="EStudent" useGeneratedKeys="true" keyProperty="id"> insert into TStudent(name, age) values(#{name}, #{age}) </insert> 阅读全文
posted @ 2020-08-07 10:15 zagwk 阅读(216) 评论(0) 推荐(0)