存储过程里面怎么没有 @aaa=@aaa-1呢
存储过程里面怎么没有 @aaa=@aaa-1呢
如何实现 @aaa-=1??????
如
CREATE PROCEDURE InsertData
AS
BEGIN
SET NOCOUNT ON;
declare @aaa int
set @aaa = 30
WHILE @aaa > 0
BEGIN
Insert Proj_Type (Name,profile) values ( 'jim ', '备注 ')
@aaa = @aaa -1
END
END
GO
------解决方案--------------------set @aaa = @aaa -1