mybatis
- 作者: 小小果99561791
- 来源: 51数据库
- 2020-09-26
可以的
Mybatis动态SQL单一基础类型参数用if标签时,test中应该用 _parameter,如:
Java代码
select * from table1
where _name = #{name}
可以使用标签,但是不叫c标签,语法与c标签一致。
where tutor_id= #{tutorid}
where name like #{coursename}
where tutor start_date >= now()
Mybatis动态SQL单一基础类型参数用if标签时,test中应该用 _parameter,如:
Java代码
select * from table1
where _name = #{name}
可以使用标签,但是不叫c标签,语法与c标签一致。
推荐阅读
