DECLARE @A INT
DECLARE @AA INT
DECLARE @B INT
DECLARE @BB INT
SET @A=1
我想使用2个循环打印出100个A
------------
SET @AA=10
SET @B=1
SET @BB=10
WHILE @A <[email protected]
BEGIN
WHILE @B <[email protected]
BEGIN
PRINT 'A '
SET @B= @B+1
END
SET @[email protected]+1
END
------解决方案--------------------
--try
DECLARE @A INT
DECLARE @AA INT
DECLARE @B INT
DECLARE @BB INT
SET @A=1
SET @AA=10
SET @B=1
SET @BB=10
WHILE @A <[email protected]
BEGIN
WHILE @B <[email protected]
BEGIN
print 'A '
SET @B= @B+1
END
select @[email protected]+1,@B = 1
END
------解决方案--------------------
DECLARE @A INT
DECLARE @AA INT
DECLARE @B INT
DECLARE @BB INT
SET @A=1
--我想使用2个循环打印出100个A
------------
SET @AA=10
SET @BB=10
WHILE @A <[email protected]
BEGIN
SET @B=1 --这里要赋初值
WHILE @B <[email protected]
BEGIN
PRINT 'A '
SET @B= @B+1
END
SET @[email protected]+1
END