1.mapper.xml中如果是实体类中没有的属性作为参数进行配置
参数名不是随便取,而是用数字,从0开始;
eg:select * from table_name where parameter_name in (#{0} , #{ 1 },、、、、,#{n} );
(以上是ibatis,mybatis好像是可以随便取名)
2.运算符需要转译:
< <
> >
& & 和
' '
" "
<> <> 不等于
1.mapper.xml中如果是实体类中没有的属性作为参数进行配置
参数名不是随便取,而是用数字,从0开始;
eg:select * from table_name where parameter_name in (#{0} , #{ 1 },、、、、,#{n} );
(以上是ibatis,mybatis好像是可以随便取名)
2.运算符需要转译:
< <
> >
& & 和
' '
" "
<> <> 不等于