摘要: 一种直接采用函数进行模糊查询,直接在映射文件中书写对应的like语句。例如:select * from u_tree ut where ut.node_name like concat(concat(‘%',#{text}),’%')第二种方式:使用 ${...} 代替 #{...}SELECT * FROM tableName WHERE name LIKE '%${text}%';第三种方式:3. 程序中拼接Java// or String searchText = "%" + text + "%";String se 阅读全文
posted @ 2012-06-19 11:30 高级测试开发网 阅读(921) 评论(0) 推荐(0) 编辑
了解开发资源最新动态:https://seniortesting.club