05 2019 档案

摘要:创建索引 1.创建索引语法 1创建位图索引 create bitmap index index_sno on student(sno); 2创建普通索引 create index index_id on 表名(字段); 1. 当经常要访问一些函数或者表达式时,可以将其存储在索引中,这样下次访问时,该 阅读全文
posted @ 2019-05-31 16:10 jentary 阅读(172) 评论(0) 推荐(0) 编辑
摘要:多表返回实体 List<Object> resultList = db.query( "from Blog as t0,Usertable as t1 where t0.userId=t1.id").list();// HQL的多表查询 for (int i = 0; i < resultList. 阅读全文
posted @ 2019-05-16 17:17 jentary 阅读(180) 评论(0) 推荐(0) 编辑
摘要:一、事务(指服务端,对客户端不生效) 消息分为事务消息和非事务消息 1、事务消息:创建会话Session使用transacted=true connection.createSession(Boolean.TRUE, Session.AUTO_ACKNOWLEDGE); 2、非事务消息:创建会话Se 阅读全文
posted @ 2019-05-05 14:10 jentary 阅读(168) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示