USE Adventureworks
--Create a new procedure for querying
CREATE PROCEDURE HumanResources.GetEmployeeName
AS
SELECT LastName,FirstName,Department FROM HumanResources.vEmployeeDepartment
GO
--when you finish your procedure,you can test it by the command 'EXEC'
EXEC HumanResources.GetEmployeeName
--Then the result of the procedure will be displayed follows
创建存储过程的简单例子
最新推荐文章于 2021-12-13 15:13:26 发布
984

被折叠的 条评论
为什么被折叠?



