随笔分类 - mybatis
摘要:直接判断不生效 如: <if test="sort == '1'"> score desc, </if> mybatis 映射文件中,if标签判断字符串相等,两种方式:因为mybatis映射文件,是使用的ognl表达式,所以在判断字符串sex变量是否是字符串Y的时候使用 如: <test="sex=
阅读全文
摘要:<insert id="add" parameterType="EStudent" useGeneratedKeys="true" keyProperty="id"> insert into TStudent(name, age) values(#{name}, #{age}) </insert>
阅读全文

浙公网安备 33010602011771号