1、由setlong()產生的空指標異常:
ref = jdbctemplate.update(sql, new preparedstatementsetter() else
2、在進行多表聯查(包括自聯接)時使用特殊處理方式
修改前:
select t0.corg_id cent_id,
t0.corg_name ent_name,
t1.corg_id corg_id,
t1.corg_name org_name,
t2.cuser_id cuser_id,
t2.cname cname,
t2.ctelephone_no ctelephone_no,
t2.cfax cfax,
t2.ccreator_id ccreator_id,
t2.cemail cemail,
t2.cuser_status cuser_status
from t_enterprise t0, t_enterprise t1, t_user t2, t_ent_org_user t3
where t2.cent_id != 'xl_01'
and t0.corg_id in
(select cent_id from t_user where upper(cname) like upper('%co%'))
and t2.cuser_id in
(select cuser_id from t_user where upper(cname) like upper('%co%'))
and t0.corg_id = t1.centerprise_id
and t1.corg_id = t3.corg_id
and t2.cuser_id = t3.cuser_id
order by t2.cname, t1.corg_id;
修改後:
select /*+first_rows*/
t0.corg_id cent_id,
t0.corg_name ent_name,
t1.corg_id corg_id,
t1.corg_name org_name,
t2.cuser_id cuser_id,
t2.cname cname,
t2.ctelephone_no ctelephone_no,
t2.cfax cfax,
t2.ccreator_id ccreator_id,
t2.cemail cemail,
t2.cuser_status cuser_status
from t_enterprise t0, t_enterprise t1, t_user t2, t_ent_org_user t3
where t2.cent_id != 'xl_01'
and t0.corg_id in
(select cent_id from t_user where upper(cname) like upper('%co%'))
and t2.cuser_id in
(select cuser_id from t_user where upper(cname) like upper('%co%'))
and t0.corg_id = t1.centerprise_id
and t1.corg_id = t3.corg_id
and t2.cuser_id = t3.cuser_id
order by t2.cname, t1.corg_id;
修改後,oracle會調整執行sql的路徑,會提高執行效率! linux使用經驗點滴
export prompt command echo ne 0337 033 2 999r 033 1 1h 033 00 44m 033 k date 033 00m 0338 2.使用多達23個的虛擬終端 vt 假設你現在有6個,仿照 etc inittab種的檔案,加入 8 234 respa...
VHDL經驗點滴
一些學到的或自己總結的vhdl經驗點滴,紀錄下來,以免以後忘記了。因為有些是自己總結的,肯定有錯誤或不周之處,歡迎高手指正!內容逐步補充中。1。如何判斷乙個process綜合結果是組合邏輯還是時序邏輯?a 乙個比較簡單的辦法是看敏感訊號和條件語句的條件,如果是電平觸發的,很可能是時序邏輯 如果是邊緣...
git 經驗點滴
git clone b 分支名 git位址 資料夾 如果不指定資料夾,會使用專案名稱作為新建資料夾名稱 cd 資料夾 之後,git checkout 分支名 可以切換分支 a.拉取規則 git pull 從伺服器端拉取最新改動,沒有衝突的檔案直接覆蓋,有衝突的檔案會提示有衝突。b.拉取之前要做什麼 ...