原创 DB2 的分頁

Hibernate 是這麼實現的(我懷疑Hibernate不支持 distinct,但是,沒有實際試過) select * from (select rownumber() over(order by AC_CHANGE_TIM

原创 Oracle SQL執行過程

SQL執行分四步 一、parse(最耗資源)     1. 從 shared pool-->library cache 中搜索。凡是執行過的 SQL 語句,Oracle會使用 HASH() 函數進行計算,產生一個很小的文本記錄。如果第

原创 二叉 搜索/查找 樹、二叉排序樹、BST

1、左子樹的所有節點 都小(比其根) 2、右子樹的所有節點 都大(比其根)

原创 還是需要認清句子結構

Varargs were designed for printf, which was added to the platform in release 1.5, and for the core reflection facilit

原创 Money make up for the loss

Money make up for the loss(彌補,錢彌補了損失) Greater throughput, responsiveness or capacity make up for these cost When thre

原创 給定1億int,找出最大的100個

給定1億個數,找出 最大的 100個 1. 用一個長度是 101 的數組,建立 小頂堆(0號元素不用,主要是爲了使用堆的性質:父結點i,則,左右 子結點 是 2i 和 2i+1) 2. 用堆頂 和 每個 取得的數 進行比較。(a. 堆頂

原创 ubuntu安裝openldap

在ubuntu 14.04 上,安裝 openldap,如果你搜索下,你會發現到處都在說 "configure: error: BDB/HDB: BerkeleyDB not available" 的錯誤。而且,每篇文章都會說是“Berk

原创 JSF select One/Many

http://hi.baidu.com/arp_tcp/item/94f971d88b160a46fb576874

原创 Throwable.fillInStackTrace

Throwable.fillInStackTrace本是一個 synchronized native 方法,其如下:  /** * Fills in the execution stack trace. This me

原创 弱弱的問下,1000行的SQL算長的嗎

弱弱的問下,1000行的SQL算長的嗎 WITH t_payinfo (pi_ord_id, pi_amount, pi_ppn_txnid,pi_ppn_payer_email,pi_ppn_paystatus, pi_pft_

原创 Exception的堆棧信息,也有可能根本就不是出錯時的調用情況

在 http://blog.csdn.net/iceman1952/article/details/8230804(Throwable.fillInStackTrace) 中,我們知道,Exception 中的 stack trace 其