ssm中:
$的本质是字符串拼接
#的本质是占位符赋值 所以在执行的时候会出现 like ?
从安全说 ${ }容易 被SQL注入 改变已有的执行规则 SQL注入是非常危险的 能不用就不用
$能不用就不用 表字段作为参数可以用
具体代码
1) where if标签
where 会自动删除 sql语句中的 第一个and
2) set if标签
不能去掉多余的
3) choose otherwise标签
choose----->添加在when otherwise 外部
when when when ------> if elseif else if
otherwise----->else