GO
DECLARE @MONTH INT
SET @MONTH = 1
LABEL1:
SELECT * FROM dbo.tb_工资数据表 WHERE 工资月份 = @MONTH
SET @MONTH = @MONTH+2
IF @MONTH<12
GOTO LABEL1
db-用goto语句实现跳转
最新推荐文章于 2022-05-30 19:42:46 发布
GO
DECLARE @MONTH INT
SET @MONTH = 1
LABEL1:
SELECT * FROM dbo.tb_工资数据表 WHERE 工资月份 = @MONTH
SET @MONTH = @MONTH+2
IF @MONTH<12
GOTO LABEL1