Mybatis 3.2.7版本

Mysql:SELECT userid,username FROM user WHERE username like "%张%"

SELECT userid,username FROM user WHERE username like "%"#{张}"%"

标签: MyBatis

添加新评论