上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 55 下一页
1.聚集函数遇到空值时,除count(*)外,都会跳过空值。 2.group by 细化聚集函数的作用对象 3.group by有个原则,就是select后面出面的列,除聚集函数外必须出现在group by后面。 4.用having输出满足条件的分组 5.自身连接:在同一张表之间的连接查询,在自参照 Read More
posted @ 2013-09-17 00:34 等风来。。 Views(229) Comments(0) Diggs(0)
1.在Table Locks(TM)中 ID1为对象的id, ID2为0在Row Locks(TX)中 ID1为Undo Segmen Number与该事务在该回滚段的事务表(Transaction table)中所占用的槽号(slot number)。ID2为以十进制数值表示环绕(wrap)次数,即该槽(slot)被重用的次数;2的16次方等于65536ID1=9x65536+10 = 589834 2.ID1转换成 xidusn,xidslottrunc截断取整,bitand按位与 Read More
posted @ 2013-09-16 15:42 等风来。。 Views(624) Comments(0) Diggs(0)
1.static不能修饰外部类的原因 static修饰的成员是属于某个类的。而外部类的上一级程序单元是包,所以static不能修饰外部类。 2.外部类,内部类有不同访问权限的原因 外部类的上一级程序单元是包,所以有两个作用域:包内,包外。对应默认访问权限,public访问权限 内部类的上一级程序单元 Read More
posted @ 2013-09-15 13:48 等风来。。 Views(203) Comments(0) Diggs(0)
住了三年的宿舍,前几天不得不搬走。也断了好几天网,所以顺手拿了本以前买的《oracle编程艺术》,感觉翻译的书就是有些地方读起来不通顺,好吃力。还好以前有点oracle经验,不然真看不懂。1.sys/guan@orcl as sysdba2.授权访问 V_$开头而非V$3.lock(1)只有修改进才加行级锁(2)读是用undo信息,所以不用加锁,也就不会阻塞(3)想要修改的数据已经另一会话修改时,才会加锁4.查询时能看到的数据定格在(1)cursor打开的时间点:read commit 的行为,read commit是默认隔离级别(2)设置transaction的时间点:read only.. Read More
posted @ 2013-09-15 00:11 等风来。。 Views(134) Comments(0) Diggs(0)
一。并发引起的问题 脏读:能读取未提交的数据 不可重复读:T1事务读取数据后,T2事务执行更新操作,使T1无法再现前一次读取的结果。分三种情况: 1.值不同 2.少了记录 3.多了记录 幻象读(后两种不可重复读):T1时间执行查询,在T2时间重新查询时,有更多或更少的行满足条件。 二。ANSI隔离级 Read More
posted @ 2013-09-05 21:23 等风来。。 Views(294) Comments(0) Diggs(0)
参考: Read More
posted @ 2013-09-05 12:11 等风来。。 Views(1095) Comments(0) Diggs(0)
1.<context:annotation-config/>注册多个处理器 <context:annotation-config/>作用是向 Spring 容器注册 AutowiredAnnotationBeanPostProcessor(@Autowired)、 CommonAnnotationB Read More
posted @ 2013-09-05 12:03 等风来。。 Views(256) Comments(0) Diggs(0)
1.Looper Looper used to run a message loop for a thread. Threads by default do not have a message loop associated with them; to create one, callprepa... Read More
posted @ 2013-09-05 11:54 等风来。。 Views(187) Comments(0) Diggs(0)
一。总结Looper有一个MessageQueue,用于封装消息循环。 Handler封装了消息投递,消息处理等的辅助类二。分析1.从Looper的用法开始分析 class LooperThread extends Thread { public Handler mHandler; ... Read More
posted @ 2013-09-04 23:31 等风来。。 Views(273) Comments(0) Diggs(0)
1.在某二元运算下,幂等元素是指被自己重复运算的结果等于它自己的元素。例如,乘法下唯一两个幂等实数为0和1。 Read More
posted @ 2013-09-04 16:42 等风来。。 Views(203) Comments(0) Diggs(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 55 下一页
------------------------------------------------------------------------------------------------------------ --------------- 欢迎联系 x.guan.ling@gmail.com--------------- ------------------------------------------------------------------------------------------------------------