javaEE sql语句注意事项

一、在mapper.xml中千万不能使用注释,例如:/* */html 二、在<foreach></foreach>中所写语句,基本上是按照所写内容直接Sql调用,例如:app AND find_in_set( #{contentType,jdbcType=VARCHAR},a.content_type) > 0 中jdbcType=VARCHAR不会按照语法翻译过来,而是直接写进Sql语句中。翻
相关文章
相关标签/搜索