heting
BlogJava
::
首頁
::
新隨筆
::
聯(lián)系
::
聚合
::
管理
::
40 隨筆 :: 9 文章 :: 45 評論 :: 0 Trackbacks
<
2010年10月
>
日
一
二
三
四
五
六
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(3)
給我留言
查看公開留言
查看私人留言
隨筆分類
c#范例(4)
(rss)
java范例
(rss)
js(3)
(rss)
linux(1)
(rss)
WebSphere(1)
(rss)
數(shù)據(jù)庫(3)
(rss)
隨筆檔案
2010年10月 (1)
2010年8月 (5)
2010年3月 (2)
2009年11月 (2)
2009年9月 (1)
2009年8月 (1)
2009年7月 (2)
2009年5月 (1)
2009年4月 (3)
2009年3月 (4)
2009年2月 (1)
2009年1月 (3)
2008年12月 (2)
2008年11月 (7)
2008年10月 (4)
2008年9月 (1)
文章檔案
2008年9月 (9)
搜索
最新評論
1.?re: struts2+freemarker中防止表單的重復提交token
@51互聯(lián)云-濟南程序猿
你什么都不懂,瞎說
--人
2.?re: struts2+freemarker中防止表單的重復提交token
沒關系,大家好,什么都沒有
--人
3.?re: struts2+freemarker中防止表單的重復提交token
套頭
--人
4.?re: struts2+freemarker中防止表單的重復提交token
評論內(nèi)容較長,點擊標題查看
--51互聯(lián)云-濟南程序猿
5.?re: struts1文件上傳和下載
評論內(nèi)容較長,點擊標題查看
--zuidaima
閱讀排行榜
1.?struts1文件上傳和下載(21133)
2.?javax.naming.CommunicationException 的一個相關異常(已解決)(11557)
3.?自己寫的一個c#winform打印類(8512)
4.?C# 與 C++ 數(shù)據(jù)類型比較及結構體轉換 (7221)
5.?WebSphere7.0 上部署struts2 找不到用于處理 JSP 的擴展處理器(2988)
評論排行榜
1.?struts1文件上傳和下載(23)
2.?自己寫的一個c#winform打印類(8)
3.?struts2+freemarker中防止表單的重復提交token(6)
4.?Ireport在瀏覽器中的顯示代碼(2)
5.?EJ3.0將EJB程序和WEb程序發(fā)布到weblogic10.3是出現(xiàn)的錯誤weblogic.wsee.async.AsyncResponseBean(2)
oracle 創(chuàng)建帶參視圖
create
or
replace
package CARD_SERVICE_DAY_VIEW_PARAM
is
function
set_param(num
varchar
)
return
varchar
;
function
get_param
return
varchar
;
end
CARD_SERVICE_DAY_VIEW_PARAM;
commit
;
create
or
replace
package body CARD_SERVICE_DAY_VIEW_PARAM
is
paramValue
varchar
(
10
);
function
set_param(num
varchar
)
return
varchar
is
begin
paramValue:
=
num;
return
num;
end
;
function
get_param
return
varchar
is
begin
return
paramValue;
end
;
end
CARD_SERVICE_DAY_VIEW_PARAM;
commit
;
create
or
replace
view
CARD_SERVICE_DAY_VIEW
as
select
cs.id,
cs.card_id,
cs.lock_money,
to_char(cs.check_time,
'
yyyy-MM-dd hh24:mi
'
)
as
check_time,
cs.name,cs.phone,( months_between(to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),
'
yyyyMMdd
'
),
to_date(to_char(cs.CHECK_TIME,
'
yyyyMMdd
'
),
'
yyyyMMdd
'
)) )
as
curr_batch,
(
select
count
(
1
)
from
transaction
where
card_id
=
cs.card_id
and
tran_time
between
cs.check_time
and
to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),
'
yyyyMMdd
'
)
and
(curr_bal
-
money
)
<
cs.lock_money)
as
condition,
(
select
count
(
1
)
from
service_transaction
where
batch
=
(months_between(to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),
'
yyyyMMdd
'
),to_date(to_char(cs.CHECK_TIME,
'
yyyyMMdd
'
),
'
yyyyMMdd
'
)))
and
s_id
=
cs.id)
as
hasAudit
from
card_service cs
where
cs.state
=
'
T
'
and
months_between(to_date(CARD_SERVICE_DAY_VIEW_PARAM.get_param(),
'
yyyyMMdd
'
),to_date(to_char(cs.CHECK_TIME,
'
yyyyMMdd
'
),
'
yyyyMMdd
'
))
in
(
1
,
2
,
3
,
4
,
5
,
6
)
order
by
cs.card_id
commit
;
posted on 2010-10-11 15:26
賀挺
閱讀(545)
評論(0)
編輯
收藏
所屬分類:
數(shù)據(jù)庫
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發(fā)表評論。
網(wǎng)站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
oracle 創(chuàng)建帶參視圖
oracle多列轉一行
sql2005中datetime 時間類型的格式化
Powered by:
BlogJava
Copyright © 賀挺
主站蜘蛛池模板:
鞍山市
|
城口县
|
余江县
|
珲春市
|
平和县
|
乌鲁木齐县
|
青州市
|
大同市
|
枝江市
|
桃园市
|
呼和浩特市
|
天水市
|
安福县
|
宝应县
|
苍溪县
|
聂荣县
|
沙湾县
|
开远市
|
博白县
|
桐柏县
|
六安市
|
九江县
|
铁力市
|
高台县
|
亳州市
|
堆龙德庆县
|
龙州县
|
福清市
|
潼关县
|
安徽省
|
宜宾县
|
邯郸县
|
徐闻县
|
碌曲县
|
鸡泽县
|
南汇区
|
贺州市
|
雅江县
|
江油市
|
新乐市
|
睢宁县
|