set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER PROC [dbo].[test] ( @AA numeric(30) ) AS DECLARE @total numeric(8,0) DECLARE @message varchar(100) BEGIN select @total=count(*) from dbo.Skill where ID=@AA return @total END declare @i numeric(10,0) EXEC @i= [dbo].[test] 1 select @i
简单存储过程的写法,调用代码在下面;
转载于:https://www.cnblogs.com/qiuzhongyang/p/3875828.html
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/222274.html原文链接:https://javaforall.net
