1.返回行与逻辑读的比率CREATE TABLE t as select * from dba_objects;--CREATE INDEX idx ON t (object_id);---例1alter session set statistics_level=all;set linesize 1...
分类:
数据库 时间:
2014-07-14 00:35:47
阅读次数:
369
1. 统计信息默认情况下是每天晚上10点半后收集,如果新建对象还没来得级收集统计信息,就采用动态采样的方式。 2. 具体在set autotrace 跟踪的执行计划中,可以看到类似:- dynamic sampling used for this statement (level=2) 3. ...
分类:
其他好文 时间:
2014-07-14 00:31:08
阅读次数:
305
基本概念结点的层次(Level)从根开始定义,根为第一层,根的孩子为第二层。二叉树的高度:树中结点的最大层次称为树的深度(Depth)或高度。二叉树在计算机科学中,二叉树是每个结点最多有两个子树的有序树。通常子树的根被称作“左子树”(left subtree)和“右子树”(right subtree...
分类:
其他好文 时间:
2014-07-13 23:45:49
阅读次数:
284
R1配置:----------------------------------------------------#sysname RT1#super password level 3 cipher H`'>T.,>(V@X!XT.,>(V@X!XT.,>(V@X!XT.,>(V@X!XT.,>(V...
分类:
其他好文 时间:
2014-07-13 22:11:00
阅读次数:
714
Given an integer n, generate a square matrix filled with elements from 1 to n2 in
spiral order.
For example,
Given n = 3,
You should return the following matrix:
[
[ 1, 2, 3 ],
[ 8, 9, 4 ],
[...
分类:
其他好文 时间:
2014-07-13 16:37:16
阅读次数:
199
All relative paths in this config are relative to php's install prefix
Pid file
/usr/local/php/logs/php-fpm.pid
Error log file
/usr/local/php/logs/php-fpm.log
Log level
notice
Whe...
分类:
Web程序 时间:
2014-07-13 16:26:05
阅读次数:
248
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are
all va...
分类:
其他好文 时间:
2014-07-13 16:11:26
阅读次数:
144
方法一:
/** List order not maintained **/
public static void removeDuplicate(ArrayList arlList)
{
HashSet h = new HashSet(arlList);
arlList.clear();
arlList.addAll(h);
}
方法二:
/** Lis...
分类:
其他好文 时间:
2014-07-12 22:45:06
阅读次数:
241
简单小结下CXF跟REST搭配webservice的做法,直接举代码为例子:
1 order.java
package com.example.rest;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "Order")
public class Order {
...
分类:
Web程序 时间:
2014-07-12 19:51:13
阅读次数:
279
SELECT 和ORDER BY结合进行排序:
products表如下:
a 按产品名称列进行排序:
b 按多个列进行排序,默认排序顺序为升序:
c 指定排序方向,即指定为降序:
d 对多个列进行排序,先按产品价格降序排列,再按产品名称排列
e 找出某一列最高值或者最低值...
分类:
数据库 时间:
2014-07-12 17:58:18
阅读次数:
288