heting
BlogJava
::
首頁
::
新隨筆
::
聯系
::
聚合
::
管理
::
40 隨筆 :: 9 文章 :: 45 評論 :: 0 Trackbacks
<
2025年5月
>
日
一
二
三
四
五
六
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
7
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(3)
給我留言
查看公開留言
查看私人留言
隨筆分類
c#范例(4)
(rss)
java范例
(rss)
js(3)
(rss)
linux(1)
(rss)
WebSphere(1)
(rss)
數據庫(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互聯云-濟南程序猿
你什么都不懂,瞎說
--人
2.?re: struts2+freemarker中防止表單的重復提交token
沒關系,大家好,什么都沒有
--人
3.?re: struts2+freemarker中防止表單的重復提交token
套頭
--人
4.?re: struts2+freemarker中防止表單的重復提交token
評論內容較長,點擊標題查看
--51互聯云-濟南程序猿
5.?re: struts1文件上傳和下載
評論內容較長,點擊標題查看
--zuidaima
閱讀排行榜
1.?struts1文件上傳和下載(21129)
2.?javax.naming.CommunicationException 的一個相關異常(已解決)(11549)
3.?自己寫的一個c#winform打印類(8502)
4.?C# 與 C++ 數據類型比較及結構體轉換 (7215)
5.?WebSphere7.0 上部署struts2 找不到用于處理 JSP 的擴展處理器(2981)
評論排行榜
1.?struts1文件上傳和下載(23)
2.?自己寫的一個c#winform打印類(8)
3.?struts2+freemarker中防止表單的重復提交token(6)
4.?Ireport在瀏覽器中的顯示代碼(2)
5.?EJ3.0將EJB程序和WEb程序發布到weblogic10.3是出現的錯誤weblogic.wsee.async.AsyncResponseBean(2)
#
自己寫的一個c#winform打印類
摘要: 1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.Windows.Forms; 5using Syste...
閱讀全文
posted @
2009-09-19 09:46
賀挺 閱讀(8502) |
評論 (8)
|
編輯
收藏
c# winform 打印類
摘要: 1using System; 2 3using System.Text; 4 5using System.Collections; 6 7using System.Collecti...
閱讀全文
posted @
2009-08-06 17:31
賀挺 閱讀(672) |
評論 (0)
|
編輯
收藏
struts2 tree
<
script
type
="text/javascript"
>
//
function treeNodeSelected(arg) {
//
alert(arg.source.title + ' selected');
//
}
dojo.addOnLoad(
function
()
{
var
s
=
dojo.widget.byId('parentId').selector;
dojo.event.connect(s, 'select', 'treeNodeSelected');
}
);
</
script
>
<
div
style
="float:left;"
>
<
s:tree
label
="${certInfo.cn}.cer"
id
="parentId"
theme
="ajax"
templateCssPath
="/struts/tree.css"
showRootGrid
="true"
showGrid
="true"
>
<
s:treenode
theme
="ajax"
label
="<a href='certificate/admin/queryCert.do?state=3'>吊銷的證書</a>"
id
="child1Id"
/>
<
s:treenode
theme
="ajax"
label
="<a href='certificate/admin/queryCert.do?state=2'>頒發的證書</a>"
id
="child2Id"
/>
<
s:treenode
theme
="ajax"
label
="<a href='certificate/admin/queryCert.do?state=1'>掛起的申請</a>"
id
="child3Id"
/>
<
s:treenode
theme
="ajax"
label
="<a href='certificate/admin/queryCert.do?state=0'>失敗的申請</a>"
id
="child4Id"
/>
</
s:tree
>
</
div
>
posted @
2009-07-10 10:33
賀挺 閱讀(375) |
評論 (0)
|
編輯
收藏
oracle創建job
--
創建job
begin
sys.dbms_job.submit(job
=>
:job,
what
=>
'
begin
pr_del_log;
end;
'
,
next_date
=>
to_date(
'
03-05-2010 08:00:00
'
,
'
dd-mm-yyyy hh24:mi:ss
'
),
interval
=>
'
trunc(add_months(sysdate,10),
''
mm
''
)+7/3
'
);
commit
;
end
;
/
--
創建存儲過程
CREATE
OR
REPLACE
PROCEDURE
PR_DEL_LOG
IS
tables_num
number
(
3
);
tables_name
varchar2
(
30
);
BEGIN
select
count
(
*
)
into
tables_num
from
user_tables
where
table_name
=
'
LOG_20090707
'
;
if
tables_num
>
0
then
tables_name :
=
'
LOG
'
||
'
_
'
||
to_char(sysdate,
'
yyyymm
'
);
else
tables_name :
=
'
LOG_20090707
'
;
end
if
;
execute
immediate
'
CREATE table
'
||
tables_name
||
'
as select * from t_sys_log where log_time < add_months(sysdate, -10)
'
;
delete
from
t_sys_log
where
log_time
<
add_months(sysdate,
-
10
);
commit
;
EXCEPTION
WHEN
OTHERS
THEN
dbms_output.put_line(
'
err:
'
||
sqlerrm);
rollback
;
END
;
posted @
2009-07-07 14:53
賀挺 閱讀(862) |
評論 (0)
|
編輯
收藏
struts2 result type
chain
用來處理Action鏈
com.opensymphony.xwork2.ActionChainResult
dispatcher
用來轉向頁面,通常處理JSP
org.apache.struts2.dispatcher.ServletDispatcherResult
freemaker
處理FreeMarker模板
org.apache.struts2.views.freemarker.FreemarkerResult
httpheader
控制特殊HTTP行為的結果類型
org.apache.struts2.dispatcher.HttpHeaderResult
redirect
重定向到一個URL
org.apache.struts2.dispatcher.ServletRedirectResult
redirectAction
重定向到一個Action
org.apache.struts2.dispatcher.ServletActionRedirectResult
stream
向瀏覽器發送InputSream對象,通常用來處理文件下載,還可用于返回AJAX數據
org.apache.struts2.dispatcher.StreamResult
velocity
處理Velocity模板
org.apache.struts2.dispatcher.VelocityResult
xslt
處理XML/XLST模板
org.apache.struts2.views.xslt.XSLTResult
plainText
顯示原始文件內容,例如文件源代碼
org.apache.struts2.dispatcher.PlainTextResult
redirect-action
重定向到一個Action
org.apache.struts2.dispatcher.ServletActionRedirectResult
plaintext
顯示原始文件內容,例如文件源代碼
org.apache.struts2.dispatcher.PlainTextResult
posted @
2009-05-18 09:11
賀挺 閱讀(1106) |
評論 (0)
|
編輯
收藏
JAVA四種基本排序,包括冒泡法,插入法,選擇法,SHELL排序法
JAVA四種基本排序,包括冒泡法,插入法,選擇法,SHELL排序法.其中選擇法是冒泡法的改進,SHELL排序法是插入法的改進.所以從根本上來說可以歸納為兩種不同的排序方法:即:插入法&冒泡法
一插入法:遍歷排序集合,每到一個元素時,都要將這個元素與所有它之前的元素遍歷比較一遍,讓符合排序順序的元素挨個移動到當前范圍內它最應該出現的位置。交換是相鄰遍歷移動,雙重循環控制實現.這種排序法屬于地頭蛇類型,在我的地牌上我要把所有的東西按一定的順序規整,過來一個,規整一個.
處理代碼如下:
public
void
sort(
int
[] data)
{
int
temp;
for
(
int
i
=
1
; i〈data.length; i
++
)
{
for
(
int
j
=
i; (j〉
0
)
&&
(data[j]〉data[j
-
1
]); j
--
)
{
temp
=
date[j];
data[j]
=
data[j
-
1
];
data[j
-
1
]
=
temp; }
}
}
二冒泡法:比較容易,它的內層循環保證遍歷一次后,集合中最小(大)元素出現在它的正確位置,下一次就是次小元素。。。該方法在集合分布的各種情況下交換移動的次數基本不變,屬于最慢的一種排序。實現也是雙重循環控制。這種排序法屬于過江龍,就是要找到極端,但是過獎龍也有大哥,二哥等,所以他們只能是大哥挑了二哥挑.
處理代碼如下:
public
static
int
[] maopao(
int
[] data)
{
int
temp;
for
(
int
i
=
0
; i〈data.length
-
1
; i
++
)
{
for
(
int
j
=
i
+
1
; j〈data.length; j
++
〉
{
if
(data[i]〈data[j]〉
{
temp
=
data[i];
data[i]
=
data[j];
data[j]
=
temp;
}
〉
〉
return
data;
三選擇法:該方法只是通過遍歷集合記錄最小(大)元素的位置,一次遍歷完后,再進行交換位置操作,類似冒泡,但在比較過程中,不進行交換操作,只記錄元素位置。一次遍歷只進行一次交換操作。這個對與交換次序比較費時的元素比較適合。這種排序法比冒泡法要城府要深的多,我先記住極端數據,待遍歷數據完了之后, 我再處理,不像冒泡法那樣只要比自己極端一點的就要處理,選擇法只處理本身范圍內的最極端數據.
public
static
void
xuanze(
int
[] data)
{
int
temp;
for
(
int
i
=
0
; i 〈 data.length; i
++
〉
{
int
lowIndex
=
i;
for
(
int
j
=
data.length
-
1
; j ) i; j
--
)
{
if
(data[j] ) data[lowIndex])
{
lowIndex
=
j;
}
}
temp
=
data[i];
data[i]
=
data[lowIndex];
data[lowIndex]
=
temp;
}
}
四 Shell排序:
它是對插入排序的一種改進,是考慮將集合元素按照一定的基數劃分成組去排序,讓每一組在局部范圍內先排成基本有序,最后在進行一次所有元素的插入排序。
public
void
sort(
int
[] data)
{
for
(
int
i
=
data.length
/
2
; i)
2
; i
/=
2
)
{
for
(
int
j
=
0
; j〈i; j
++
〉
{
insertSort(data,j,i);
}
〉
insertSort(data,
0
,
1
);
〉
private
void
insertSort(
int
[] data,
int
start,
int
inc)
{
int
temp;
for
(
int
i
=
start
+
inc; i〈data.length; i
+=
inc〉
{
for
(
int
j
=
i; (j)
=
inc)
&&
(data[j]〈data[j
-
inc]〉; j
-=
inc〉
{
temp
=
data[j];
data[j]
=
data[j
-
inc]
data[j
-
inc]
=
temp;
}
〉
〉
posted @
2009-04-03 09:51
賀挺 閱讀(330) |
評論 (0)
|
編輯
收藏
struts.properties
struts.action.extension
The URL extension to use to determine if the request is meant for a Struts action
用URL擴展名來確定是否這個請求是被用作Struts action,其實也就是設置 action的后綴,例如login.do的'do'字。
struts.configuration
The org.apache.struts2.config.Configuration implementation class
org.apache.struts2.config.Configuration接口名
struts.configuration.files
A list of configuration files automatically loaded by Struts
struts自動加載的一個配置文件列表
struts.configuration.xml.reload
Whether to reload the XML configuration or not
是否加載xml配置(true,false)
struts.continuations.package
The package containing actions that use Rife continuations
含有actions的完整連續的package名稱
struts.custom.i18n.resources
Location of additional localization properties files to load
加載附加的國際化屬性文件(不包含.properties后綴)
struts.custom.properties
Location of additional configuration properties files to load
加載附加的配置文件的位置
struts.devMode
Whether Struts is in development mode or not
是否為struts開發模式
struts.dispatcher.parametersWorkaround
Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic
(某些版本的weblogic專用)是否使用一個servlet請求參數工作區(PARAMETERSWORKAROUND)
struts.enable.DynamicMethodInvocation
Allows one to disable dynamic method invocation from the URL
允許動態方法調用
struts.freemarker.manager.classname
The org.apache.struts2.views.freemarker.FreemarkerManager implementation class
org.apache.struts2.views.freemarker.FreemarkerManager接口名
struts.i18n.encoding
The encoding to use for localization messages
國際化信息內碼
struts.i18n.reload
Whether the localization messages should automatically be reloaded
是否國際化信息自動加載
struts.locale
The default locale for the Struts application
默認的國際化地區信息
struts.mapper.class
The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class
org.apache.struts2.dispatcher.mapper.ActionMapper接口
struts.multipart.maxSize
The maximize size of a multipart request (file upload)
multipart請求信息的最大尺寸(文件上傳用)
struts.multipart.parser
The org.apache.struts2.dispatcher.multipart.MultiPartRequest parser implementation for a multipart request (file upload)
專為multipart請求信息使用的org.apache.struts2.dispatcher.multipart.MultiPartRequest解析器接口(文件上傳用)
struts.multipart.saveDir
The directory to use for storing uploaded files
設置存儲上傳文件的目錄夾
struts.objectFactory
The com.opensymphony.xwork2.ObjectFactory implementation class
com.opensymphony.xwork2.ObjectFactory接口(spring)
struts.objectFactory.spring.autoWire
Whether Spring should autoWire or not
是否自動綁定Spring
struts.objectFactory.spring.useClassCache
Whether Spring should use its class cache or not
是否spring應該使用自身的cache
struts.objectTypeDeterminer
The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class
com.opensymphony.xwork2.util.ObjectTypeDeterminer接口
struts.serve.static.browserCache
If static content served by the Struts filter should set browser caching header properties or not
是否struts過濾器中提供的靜態內容應該被瀏覽器緩存在頭部屬性中
struts.serve.static
Whether the Struts filter should serve static content or not
是否struts過濾器應該提供靜態內容
struts.tag.altSyntax
Whether to use the alterative syntax for the tags or not
是否可以用替代的語法替代tags
struts.ui.templateDir
The directory containing UI templates
UI templates的目錄夾
struts.ui.theme
The default UI template theme
默認的UI template主題
struts.url.http.port
The HTTP port used by Struts URLs
設置http端口
struts.url.https.port
The HTTPS port used by Struts URLs
設置https端口
struts.url.includeParams
The default includeParams method to generate Struts URLs
在url中產生 默認的includeParams
struts.velocity.configfile
The Velocity configuration file path
velocity配置文件路徑
struts.velocity.contexts
List of Velocity context names
velocity的context列表
struts.velocity.manager.classname
org.apache.struts2.views.velocity.VelocityManager implementation class
org.apache.struts2.views.velocity.VelocityManager接口名
struts.velocity.toolboxlocation
The location of the Velocity toolbox
velocity工具盒的位置
struts.xslt.nocache
Whether or not XSLT templates should not be cached
是否XSLT模版應該被緩存
struts.serve.static.browserCache
該屬性設置瀏覽器是否緩存靜態內容。當應用處于開發階段時,我們希望每次請求都獲得服務器的最新響應,則可設置該屬性為false。
struts.enable.DynamicMethodInvocation
該屬性設置Struts 2是否支持動態方法調用,該屬性的默認值是true。如果需要關閉動態方法調用,則可設置該屬性為false。
struts.enable.SlashesInActionNames
該屬性設置Struts 2是否允許在Action名中使用斜線,該屬性的默認值是false。如果開發者希望允許在Action名中使用斜線,則可設置該屬性為true。
struts.tag.altSyntax
該屬性指定是否允許在Struts 2標簽中使用表達式語法,因為通常都需要在標簽中使用表達式語法,故此屬性應該設置為true,該屬性的默認值是true。
struts.devMode
該屬性設置Struts 2應用是否使用開發模式。如果設置該屬性為true,則可以在應用出錯時顯示更多、更友好的出錯提示。該屬性只接受true和flase兩個值,該屬性的默認值是false。通常,應用在開發階段,將該屬性設置為true,當進入產品發布階段后,則該屬性設置為false。
struts.i18n.reload
該屬性設置是否每次HTTP請求到達時,系統都重新加載資源文件。該屬性默認值是false。在開發階段將該屬性設置為true會更有利于開發,但在產品發布階段應將該屬性設置為false。
提示開發階段將該屬性設置了true,將可以在每次請求時都重新加載國際化資源文件,從而可以讓開發者看到實時開發效果;產品發布階段應該將該屬性設置為false,是為了提供響應性能,每次請求都需要重新加載資源文件會大大降低應用的性能。
struts.ui.theme
該屬性指定視圖標簽默認的視圖主題,該屬性的默認值是xhtml。
struts.ui.templateDir
該屬性指定視圖主題所需要模板文件的位置,該屬性的默認值是template,即默認加載template路徑下的模板文件。
struts.ui.templateSuffix
該屬性指定模板文件的后綴,該屬性的默認屬性值是ftl。該屬性還允許使用ftl、vm或jsp,分別對應FreeMarker、Velocity和JSP模板。
struts.configuration.xml.reload
該屬性設置當struts.xml文件改變后,系統是否自動重新加載該文件。該屬性的默認值是false。
struts.velocity.configfile
該屬性指定Velocity框架所需的velocity.properties文件的位置。該屬性的默認值為velocity.properties。
struts.velocity.contexts
該屬性指定Velocity框架的Context位置,如果該框架有多個Context,則多個Context之間以英文逗號(,)隔開。
struts.velocity.toolboxlocation
該屬性指定Velocity框架的toolbox的位置。
struts.url.http.port
該屬性指定Web應用所在的監聽端口。該屬性通常沒有太大的用戶,只是當Struts 2需要生成URL時(例如Url標簽),該屬性才提供Web應用的默認端口。
struts.url.https.port
該屬性類似于struts.url.http.port屬性的作用,區別是該屬性指定的是Web應用的加密服務端口。
struts.url.includeParams
該屬性指定Struts 2生成URL時是否包含請求參數。該屬性接受none、get和all三個屬性值,分別對應于不包含、僅包含GET類型請求參數和包含全部請求參數。
struts.custom.i18n.resources
該屬性指定Struts 2應用所需要的國際化資源文件,如果有多份國際化資源文件,則多個資源文件的文件名以英文逗號(,)隔開。
struts.dispatcher.parametersWorkaround
對于某些Java EE服務器,不支持HttpServlet Request調用getParameterMap()方法,此時可以設置該屬性值為true來解決該問題。該屬性的默認值是false。對于 WebLogic、Orion和OC4J服務器,通常應該設置該屬性為true。
struts.freemarker.manager.classname
該屬性指定Struts 2使用的FreeMarker管理器。該屬性的默認值是
org.apache.struts2.views.freemarker.FreemarkerManager,這是Struts 2內建的FreeMarker管理器。
struts.freemarker.wrapper.altMap該屬性只支持true和false兩個屬性值,默認值是true。通常無需修改該屬性值。
struts.xslt.nocache
該屬性指定XSLT Result是否使用樣式表緩存。當應用處于開發階段時,該屬性通常被設置為true;當應用處于產品使用階段時,該屬性通常被設置為false。
struts.configuration.files
該屬性指定Struts 2框架默認加載的配置文件,如果需要指定默認加載多個配置文件,則多個配置文件的文件名之間以英文逗號(,)隔開。該屬性的默認值為struts- default.xml,struts-plugin.xml,struts.xml,看到該屬性值,讀者應該明白為什么Struts 2框架默認加載struts.xml文件了。
posted @
2009-04-02 14:34
賀挺 閱讀(180) |
評論 (0)
|
編輯
收藏
java打開外部文件,doc
Runtime.getRuntime().exec(
"
rundll32 url.dll,FileProtocolHandler file://
"
+
resultStr);
posted @
2009-04-01 15:02
賀挺 閱讀(291) |
評論 (2)
|
編輯
收藏
Oracle序列
create
sequence name
increment
by
x
//
x為增長間隔
start
with
x
//
x為初始值
maxvalue x
//
x為最大值
minvalue x
//
x為最小值
cycle
//
循環使用,到達最大值或者最小值時,從新建立對象
cache x
//
制定緩存序列值的個數
--
----------------------一個例子-----------------------
create
sequence for_test
--
序列名
increment
by
1
--
每次增加1
start
with
1
--
從1開始
nomaxvalue
--
沒有最大值
nocache
--
沒有緩存序列
--
--------------------------創建測試表------------------
create
table
Test
(
TestID
int
primary
key
,
TestName
varchar2
(
20
)
not
null
,
Tdescription
varchar2
(
200
)
null
)
--
---------------------------使用序列-------------------
insert
into
Test
values
(for_test.nextval,
'
序列測試
'
,
'
這是一個序列使用的例子
'
)
--
------------------序列使用結果查詢-----------------
select
*
from
test
posted @
2009-03-31 13:57
賀挺 閱讀(147) |
評論 (0)
|
編輯
收藏
MySQL存儲過程例子,包含事務,參數,嵌套調用,游標,循環等
drop
procedure
if
exists
pro_rep_shadow_rs;
delimiter
|
--
--------------------------------
--
rep_shadow_rs
--
用來處理信息的增加,更新和刪除
--
每次只更新上次以來沒有做過的數據
--
根據不同的標志位
--
需要一個輸出的參數,
--
如果返回為0,則調用失敗,事務回滾
--
如果返回為1,調用成功,事務提交
--
--
測試方法
--
call pro_rep_shadow_rs(@rtn);
--
select @rtn;
--
--------------------------------
create
procedure
pro_rep_shadow_rs(out rtn
int
)
begin
--
聲明變量,所有的聲明必須在非聲明的語句前面
declare
iLast_rep_sync_id
int
default
-
1
;
declare
iMax_rep_sync_id
int
default
-
1
;
--
如果出現異常,或自動處理并rollback,但不再通知調用方了
--
如果希望應用獲得異常,需要將下面這一句,以及啟動事務和提交事務的語句全部去掉
declare
exit
handler
for
sqlexception
rollback
;
--
查找上一次的
select
eid
into
iLast_rep_sync_id
from
rep_de_proc_log
where
tbl
=
'
rep_shadow_rs
'
;
--
如果不存在,則增加一行
if
iLast_rep_sync_id
=-
1
then
insert
into
rep_de_proc_log(rid,eid,tbl)
values
(
0
,
0
,
'
rep_shadow_rs
'
);
set
iLast_rep_sync_id
=
0
;
end
if
;
--
下一個數字
set
iLast_rep_sync_id
=
iLast_rep_sync_id
+
1
;
--
設置默認的返回值為0:失敗
set
rtn
=
0
;
--
啟動事務
start
transaction
;
--
查找最大編號
select
max
(rep_sync_id)
into
iMax_rep_sync_id
from
rep_shadow_rs;
--
有新數據
if
iMax_rep_sync_id
>=
iLast_rep_sync_id
then
--
調用
call pro_rep_shadow_rs_do(iLast_rep_sync_id,iMax_rep_sync_id);
--
更新日志
update
rep_de_proc_log
set
rid
=
iLast_rep_sync_id,eid
=
iMax_rep_sync_id
where
tbl
=
'
rep_shadow_rs
'
;
end
if
;
--
運行沒有異常,提交事務
commit
;
--
設置返回值為1
set
rtn
=
1
;
end
;
|
delimiter ;
drop
procedure
if
exists
pro_rep_shadow_rs_do;
delimiter
|
--
-------------------------------
--
處理指定編號范圍內的數據
--
需要輸入2個參數
--
last_rep_sync_id 是編號的最小值
--
max_rep_sync_id 是編號的最大值
--
無返回值
--
-------------------------------
create
procedure
pro_rep_shadow_rs_do(last_rep_sync_id
int
, max_rep_sync_id
int
)
begin
declare
iRep_operationtype
varchar
(
1
);
declare
iRep_status
varchar
(
1
);
declare
iRep_Sync_id
int
;
declare
iId
int
;
--
這個用于處理游標到達最后一行的情況
declare
stop
int
default
0
;
--
聲明游標
declare
cur
cursor
for
select
id,Rep_operationtype,iRep_status,rep_sync_id
from
rep_shadow_rs
where
rep_sync_id
between
last_rep_sync_id
and
max_rep_sync_id;
--
聲明游標的異常處理,設置一個終止標記
declare
CONTINUE
HANDLER
FOR
SQLSTATE
'
02000
'
SET
stop
=
1
;
--
打開游標
open
cur;
--
讀取一行數據到變量
fetch
cur
into
iId,iRep_operationtype,iRep_status,iRep_Sync_id;
--
這個就是判斷是否游標已經到達了最后
while
stop
<>
1
do
--
各種判斷
if
iRep_operationtype
=
'
I
'
then
insert
into
rs0811 (id,fnbm)
select
id,fnbm
from
rep_shadow_rs
where
rep_sync_id
=
iRep_sync_id;
elseif iRep_operationtype
=
'
U
'
then
begin
if
iRep_status
=
'
A
'
then
insert
into
rs0811 (id,fnbm)
select
id,fnbm
from
rep_shadow_rs
where
rep_sync_id
=
iRep_sync_id;
elseif iRep_status
=
'
B
'
then
delete
from
rs0811
where
id
=
iId;
end
if
;
end
;
elseif iRep_operationtype
=
'
D
'
then
delete
from
rs0811
where
id
=
iId;
end
if
;
--
讀取下一行的數據
fetch
cur
into
iId,iRep_operationtype,iRep_status,iRep_Sync_id;
end
while
;
--
循環結束
close
cur;
--
關閉游標
end
;
posted @
2009-03-25 09:55
賀挺 閱讀(532) |
評論 (0)
|
編輯
收藏
僅列出標題
共4頁:
上一頁
1
2
3
4
下一頁
Powered by:
BlogJava
Copyright © 賀挺
主站蜘蛛池模板:
亚洲免费网站观看视频
|
大胆亚洲人体视频
|
永久免费看bbb
|
免费a级毛片网站
|
亚洲人成网7777777国产
|
久久丫精品国产亚洲av
|
亚洲国产日韩精品
|
一区免费在线观看
|
四虎影视在线影院在线观看免费视频
|
亚洲国产av玩弄放荡人妇
|
污视频网站免费观看
|
CAOPORN国产精品免费视频
|
免费A级毛片无码A∨中文字幕下载
|
国产免费毛不卡片
|
亚洲国产成人久久笫一页
|
久久久久亚洲精品无码系列
|
亚洲免费视频网站
|
欧洲亚洲国产精华液
|
成人黄网站片免费视频
|
国产卡一卡二卡三免费入口
|
亚洲欧洲久久av
|
亚洲日韩中文字幕天堂不卡
|
亚洲图片中文字幕
|
免费精品国产自产拍在线观看
|
国产无遮挡裸体免费视频在线观看
|
免费看成人AA片无码视频羞羞网
|
国产一级淫片视频免费看
|
亚洲电影一区二区三区
|
精品国产亚洲第一区二区三区
|
久久青草免费91线频观看站街
|
免费高清在线影片一区
|
亚洲AV日韩精品久久久久久久
|
亚洲精品伦理熟女国产一区二区
|
一区二区3区免费视频
|
国产一卡2卡3卡4卡2021免费观看
|
亚洲国产午夜福利在线播放
|
亚洲精品影院久久久久久
|
又粗又长又爽又长黄免费视频
|
国产一卡2卡3卡4卡无卡免费视频 国产一卡二卡3卡四卡免费
|
亚洲免费一级视频
|
亚洲不卡无码av中文字幕
|