首页上一页 1 下一页尾页 1 条记录 1/1页
《asp.net从入门到精通》(第二版)第31章 B2C电子商务网站中的存储过程 proc_AddOI
发表在ASP.NET图书答疑
2011-08-15
是否精华
是
否
版块置顶:
是
否
存储过程 proc_AddOI 中
CREATE proc [dbo].[proc_AddOI]
(
@BooksFee float,
@ShipFee float,
@ShipType varchar(50),
@Name varchar(50),
@Phone varchar(20),
@PostCode char(10),
@Address varchar(200),
@Email varchar(50),
@OrderID int output
)
as
Insert into tb_OrderInfo
(BooksFee,ShipFee,TotalPrice,ShipType,ReceiverName,ReceiverPhone,ReceiverPostCode,ReceiverAddress,ReceiverEmail)
values
(@BooksFee,@ShipFee,(@BooksFee+@ShipFee),@ShipType,@Name,@Phone,@PostCode,@Address,@Email)
select @OrderID=@@identity
go
这里最后一句 select @OrderID=@@identity
请问是什么意思?
CREATE proc [dbo].[proc_AddOI]
(
@BooksFee float,
@ShipFee float,
@ShipType varchar(50),
@Name varchar(50),
@Phone varchar(20),
@PostCode char(10),
@Address varchar(200),
@Email varchar(50),
@OrderID int output
)
as
Insert into tb_OrderInfo
(BooksFee,ShipFee,TotalPrice,ShipType,ReceiverName,ReceiverPhone,ReceiverPostCode,ReceiverAddress,ReceiverEmail)
values
(@BooksFee,@ShipFee,(@BooksFee+@ShipFee),@ShipType,@Name,@Phone,@PostCode,@Address,@Email)
select @OrderID=@@identity
go
这里最后一句 select @OrderID=@@identity
请问是什么意思?