ibatis中 #和$ 区别
2012-07-13 14:55
295 查看
在IbatiS的select中有两个占位符 # 和 $
我们先看一个查询语句:
select * from user where Name = #userName#;
ibatis解析成:select * from user where Name = ? 这样的语句,然后在填充参数。
select * from user where Name = ‘$userName$’
ibatis解析成:select * from user where Name = '传过来的值' (传过来的值直接填充)
我们先看一个查询语句:
select * from user where Name = #userName#;
ibatis解析成:select * from user where Name = ? 这样的语句,然后在填充参数。
select * from user where Name = ‘$userName$’
ibatis解析成:select * from user where Name = '传过来的值' (传过来的值直接填充)
相关文章推荐
- ibatis_mybatis_hibernate_(1)区别介绍
- ibatis中simple,dbcp,jndi的区别
- 选用ibatis和hibernate的区别
- ibatis 到 MyBatis区别(zz)
- ibatis中$和#的区别
- IBatis和Hibernate区别
- iBatis 到 MyBatis区别
- ibatis中#与$的区别
- ibatiS和hibernate的区别
- IBatis和Hibernate区别
- ibatis和hibernate的区别 .
- ibatis $与#的区别
- mybatis和ibatis的区别
- ibatis的sqlMap的配置的resultMap元素和resultClass元素的区别。
- ibatis 到 MyBatis区别
- ibatis和hibernate的区别
- Hibernate和Ibatis区别
- ibatis sql中$和#的区别
- 选用ibatis和hibernate的区别
- Ibatis 与 Hibernate 的区别!