Mybatis在注解上实现动态SQL

使用Mybatis注解实现sql语句,可是有些时候有些字段是空的,这时候这个空的字段就要从条件查询语句中删除,这个时候就须要用到动态Sql。 注解的动态语句支持如下 trim where set foreach if choose when otherwise bindweb @Select({"<script> " + "select * from t_user " +
相关文章
相关标签/搜索