
myBatis
fengoh
这个作者很懒,什么都没留下…
展开
-
mybatis大于小于及其它 运算符操作
在ibatis配置文件写SQL语句的时候对于一些比如“"," 一般可以如下改写: < > > <> & & ' ' " "转载 2014-05-15 18:38:08 · 2654 阅读 · 0 评论 -
mybatis中一些自带常用的方法
① selectByPrimaryKey() User user = userDAO.selectByPrimaryKey(100); 相当于select * from user where id = 100 ② selectByExample() 和 selectByExampleWithBLOGs() UserExample example = new UserExampl转载 2014-05-13 15:42:04 · 7332 阅读 · 0 评论 -
每日一个知识点5 2014/6/3
运行环境:mybatis,java。 and tree_type='S' and tree_type != 'S'原创 2014-06-03 14:09:31 · 588 阅读 · 0 评论 -
每日一个知识点6 2014/6/4
错误提示: org.springframework.jdbc.BadSqlGrammarException: ### Error querying database. Cause: java.sql.SQLException: ORA-00911: 无效字符 环境:java,oracle,mybatis 操作: 原创 2014-06-04 11:31:20 · 351 阅读 · 0 评论 -
每日一个知识点8 2014/6/11
MyBatis模糊查询 parameterType="String" resultType="Student"> select s_id,s_name,s_age from student where s_name like '%'||#{s_name}||'%' 原创 2014-06-11 10:21:47 · 384 阅读 · 0 评论