gpt-4-0314· openai
from WildChat-4.8M
CREATE PROCEDURE prcGetCostDetail2 @ProductId int, @StandardCost money OUTPUT AS BEGIN…
- User
CREATE PROCEDURE prcGetCostDetail2 @ProductId int, @StandardCost money OUTPUT
AS
BEGIN
codeIF EXISTS(SELECT * FROM Production.ProductCostHistory WHERE ProductID = @ProductId)BEGIN
SELECT @StandardCost = StandardCost
codeFROM Production.ProductCostHistoryRETURN 0
END
ELSE
RETURN 1
END
Select one:
a. Procedure trên 2 chứa tham số xuất (output parameters)
b. Procedure trên không chứa tham số (parameters)
c. Procedure trên chứa 2 tham số (parameters): 1 tham số nhập, và 1 tham số xuất
d. Procedure trên 2 chứa tham số nhập (input parameters)
- Assistant
c. Procedure trên chứa 2 tham số (parameters): 1 tham số nhập, và 1 tham số xuất