14 lines
361 B
MySQL
14 lines
361 B
MySQL
|
CREATE PROCEDURE [dbo].[spInventoryInsert]
|
|||
|
-- [ProductId], [Quantity], [PurchasePrice], [PurchaseDate]
|
|||
|
@ProductId int,
|
|||
|
@Quantity int,
|
|||
|
@PurchasePrice money,
|
|||
|
@PurchaseDate datetime2
|
|||
|
AS
|
|||
|
BEGIN
|
|||
|
SET NOCOUNT ON;
|
|||
|
|
|||
|
INSERT INTO dbo.Inventory (ProductId, Quantity, PurchasePrice, PurchaseDate)
|
|||
|
VALUES (@ProductId, @Quantity, @PurchasePrice, @PurchaseDate);
|
|||
|
|
|||
|
END
|