05 2019 档案
摘要:创建索引 1.创建索引语法 1创建位图索引 create bitmap index index_sno on student(sno); 2创建普通索引 create index index_id on 表名(字段); 1. 当经常要访问一些函数或者表达式时,可以将其存储在索引中,这样下次访问时,该
阅读全文
摘要:多表返回实体 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.
阅读全文
摘要:一、事务(指服务端,对客户端不生效) 消息分为事务消息和非事务消息 1、事务消息:创建会话Session使用transacted=true connection.createSession(Boolean.TRUE, Session.AUTO_ACKNOWLEDGE); 2、非事务消息:创建会话Se
阅读全文