随笔分类 -  数据库

摘要:我使用springMVC集成mybatis,执行SQLMapper配置文件里的insert操作,发现程序没有报错,但数据库表里却没有刚才插入的记录。查了很多资料,终于在一篇博客上找到了答案:在执行完方法后,必须有session.commit();这句话进行事务提交。因为在做Insert Update... 阅读全文
posted @ 2015-06-01 17:27 luoluo,keep moving... 阅读(8249) 评论(0) 推荐(1)
摘要:eg:select orderid,status,createtime from orders where appid = :appId and userid = :userId order by createtime desc limit :page,:pageSize;小细节,注意一下 阅读全文
posted @ 2014-07-30 14:44 luoluo,keep moving... 阅读(1565) 评论(0) 推荐(0)