zoukankan
html css js c++ java
从Membership提取存储过程精华
DECLARE
@TranStarted
int
DECLARE
@ErrorCodeint
--
开始事务
IF
(
@@TRANCOUNT
=
0
)
BEGIN
BEGIN
TRANSACTION
SET
@TranStarted
=
1
END
ELSE
SET
@TranStarted
=
0
--
处理查询内容
--
查询结束
--
发生错误转向错误处理
IF
(
@@ERROR
<>
0
)
BEGIN
SET
@ErrorCode
=
-
1
GOTO
Cleanup
END
IF
(
@TranStarted
=
1
)
BEGIN
SET
@TranStarted
=
0
--
提交
COMMIT
TRANSACTION
END
RETURN
(
0
)
Cleanup:
--
错误处理
IF
(
@TranStarted
=
1
)
BEGIN
SET
@TranStarted
=
0
--
回滚
ROLLBACK
TRANSACTION
END
RETURN
@ErrorCode
查看全文
相关阅读:
python2(跳脱字节、字符类型:字符串、boolean)
php like模糊查询详解 '%value%'
php mysql distinct关键字的用法
php mysql 基础的增删改查操作
for循环 求数组平均数和总数
for()循环关联数组
找出数组中的最大值及其索引
php 2种常用定义数组的用法
php 使用字符串函数取出数组中的图片名
php 使用魔术变量加载文件 __DIR__
原文地址:https://www.cnblogs.com/yuxiang9999/p/369327.html
最新文章
POJ2446
Python IDLE 清屏及行号显示功能实现
Python3.7.0安装及无法卸载问题解决
nginx: [emerg] bind() to 0.0.0.0:80 failed (10013:
Java基础——多线程(二)——创建线程的两种方式及区别
Java基础——多线程(一)——多线程概述
常用的N个网站建议收藏
关于使用th:text获取不到值
SpringBoot嵌入式Servlet容器
SpringBoot2.+restful风格请求方式设置以及表单中日期格式设置
热门文章
SpringBoot对静态资源的映射规则
python:集合详解()
python:字典详解2(default预设值:get(0、setdefault()defaultdict()、key的类型)
python:字典详解1
python:list详解3
pyhon:lsit详解2
python:list详解
python5
python4 (控制语句、循环:for、while、关键continue、关键breake、关键pass、关键range)
python3(类型:dates and times、)
Copyright © 2011-2022 走看看