Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-07 02:55:24
阅读次数:
377
在项目数据库设计过程中由于单表的数据量非常庞大,需要对表进行分区处理。由于表中的数据是历史交易,故按月分区,提升查询和管理。
由于之前对于表分区了解不多,为了实现上述功能查了很多资料,一开始的方向是通过Crontab调用Shell脚本来按月自动创建分区,或者使用Oracle的Job调用存储过程来自动创建分区。在研究上述两套方案的过程中,无意发现Oracle11g有间隔分区功能,对于使用Ran...
分类:
数据库 时间:
2014-05-07 02:51:26
阅读次数:
350
select * from table where id =
?类似于上面这样的sql,如果不用绑定变量,每次执行时Oracle会认为是不同的sql,会在每次执行时生成一遍执行计划,而执行计划的生成是非常耗CPU,试想一下,如果1000个并发都在执行这条语句,等于同时在生成1000个执行计划。如果使...
分类:
数据库 时间:
2014-05-07 00:58:05
阅读次数:
418
oracle转义字符开关:set define off / show define...
分类:
数据库 时间:
2014-05-06 23:32:46
阅读次数:
380
Chef develops his own computer program for playing chess. He is at the very beginning. At first he needs to write the module that will receive moves written by the players and analyze it. The module w...
分类:
其他好文 时间:
2014-05-06 23:11:26
阅读次数:
497
安装rlwrap
下载:http://utopia.knoware.nl/~hlub/uck/rlwrap/
或者 百度云盘:http://pan.baidu.com/s/1ntM8YXr
需要先安装readline,否则会报一下错误:You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) t...
分类:
数据库 时间:
2014-05-06 19:36:00
阅读次数:
537
在启动数据库时出现下列错误[oracle@edbjr2p1~]$sqlplus/assysdbaSQL*Plus:Release11.2.0.4.0ProductiononMonMay521:56:002014Copyright(c)1982,2013,Oracle.Allrightsreserved.Connectedtoanidleinstance.SYS@PROD>startupORA-00119:invalidspecificationforsystemparamete..
分类:
数据库 时间:
2014-05-06 17:32:11
阅读次数:
503
Oracle常用函数1、NVL()函数语法:NVL(expr1,expr2)含义:如果expr1的计算结果为null值,则NVL()返回expr2。如果expr1的计算结果不是null值,则返回expr1.expr1和expr2可以是任意一种数据类型。如果expr1与expr2的结果皆为null值,则NVL()返回null。返回值类型:字符型、日期型..
分类:
数据库 时间:
2014-05-06 17:22:42
阅读次数:
530