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

浙公网安备 33010602011771号