sql存储过程insert 后的错误检查很重要。否则出错前台无法知道
来源:互联网 发布:市场营销数据分析 编辑:程序博客网 时间:2024/06/06 01:11
insert CBC_PRecvGoodsOutDetail(Porder, InPorder, Code, InType, OutQty,
Price, PurPrice, OutTotal, salePrice,-- Unit,
PosNo,
LotNo,
TgtSiteNo, SrcSiteNo, BusiDate, smemo, createdate,
creator, lastupdate, lastupdateuser, resultid, SID) values(
@p_vcPorder, @vcInPorder, @p_vcProdCode, @p_vcOutType, @fOutQty,
@fCostPrice, 0, cast(isnull(@fCostPrice, 0)* @fOutQty as numeric(18, 2)), @p_fSalePrice, --@vcUnit,
@vcPosNo,
@p_vcLotNo,
@p_vcTgtSiteNo, @p_vcSiteNo, convert(varchar(10), @dtOutDate, 120), '出库', getdate(),
@p_vcUserId, getdate(), @p_vcUserId, null, @iSID)
/*
if @@ERROR <> 0
begin
set @p_iRetCode = 10002
set @p_vcRetMsg = '数据错误:Insert CBC_PRecvGoodsOutDetail......'
return -1
end
*/
if @fRestQty <= 0
begin
break
end
- sql存储过程insert 后的错误检查很重要。否则出错前台无法知道
- 生成insert SQl的存储过程文件
- sql 存储过程实例----Insert
- 前台接收sql存储过程输出参数的例子
- MS SQL server 生成 insert 数据的存储过程脚本
- sql server 2005 导出insert 脚本的存储过程
- 自动生成INSERT语句的SQL存储过程
- Orcad 原理图完成后 的 规则检查,设置很重要。
- 生成Insert语句SQL存储过程
- SQL Server 存储过程生成insert语句
- SQL Server 存储过程嵌套处理 错误提示:INSERT EXEC 语句不能嵌套
- 检查trace的存储过程
- 检查更新的存储过程
- SQL检查存储过程是否包含关键字
- sql,insert语句出错
- SQL Server 2005 导出包含(insert into)数据的SQL脚本 (使用存储过程)
- SQL Server 2005 导出包含(insert into)数据的SQL脚本 (使用存储过程)
- 使用SQL*Plus创建ORACLE存储过程报编译错误,如何知道具体错误信息?
- linux开机自启动脚本
- 栈的实现
- mark
- mysql 存储过程详解
- hdu 2181 哈密顿绕行世界问题
- sql存储过程insert 后的错误检查很重要。否则出错前台无法知道
- 进口奶粉清关案例 奶粉进口清关案例
- CentOS下安装svn,添加新用户,重启svn服务
- ios 设置启动页面的时间
- Nginx 504 超时解决
- KEIL工具之如何生成.bin文件
- typedef与typedef struct用法详解
- Linux 打开终端/命令行
- 【BestCoder】 HDOJ 5234 Happy birthday