医药网订单对接ERP软件订单接口


SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[Orderinterface]
as
create table #a --创建临时表#a储存查询的结果集
(
ID   int IDENTITY (0,1),--自增列从0开始每次增加1
o_id int,--医药网订单ID
o_buyer_internal_code varchar(256),--采购客户ERP内码
o_add_time datetime, --订单创建时间
o_note varchar(512),--订单备注
);
 --将查询结果集插入到临时表中
INSERT INTO #a select o_id,o_buyer_internal_code,o_add_time ,o_note from mph_order
where is_fetch = '否'
--创建临时变量
declare
@ii int,--循环更新变量
@i int,
@jj int,--循环更新变量
@j int,
@Ordermaxid int,--千方OrderIndex表最大id
@oo_id int--医药网订单id   
set @ii=0   --从0开始
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值