Navicat版本:10.1.7
版本比较旧,一些语法格式可能跟新版的不太一样,不过模糊查询格式还是一样的
长这个样子:
在Navicat里查询:
select * from user_fund where name like '%国%'
在IDEA里查询:用${name}代替“国”的位置
select * from user_fund where name like '%${name}%'
在postman测试接口:
成功查询:
IDEA中日志信息如下:
Navicat版本:10.1.7
版本比较旧,一些语法格式可能跟新版的不太一样,不过模糊查询格式还是一样的
长这个样子:
在Navicat里查询:
select * from user_fund where name like '%国%'
在IDEA里查询:用${name}代替“国”的位置
select * from user_fund where name like '%${name}%'
在postman测试接口:
成功查询:
IDEA中日志信息如下: