I need to run a loop in SQL. Google this is a little hard for some odd reason. In SQL Server I just put this is in the query editor in SQL Server Managment Studio
DECLARE @z_start INT
SET @z_start = 0
DECLARE @z_end INT
SET @z_end = 0
WHILE (@z_start <= 14) BEGIN
IF(@z_start != 0 AND @z_end != 14)
WHILE (@z_end <= 14) BEGIN
INSERT INTO [campusMap].[dbo].[zoom_levels] ([zoom_start],[zoom_end]) VALUES (@z_start,@z_end)
SET @z_end = @z_end + 1
END
SET @z_start = @z_start + 1
END
END
All I want to do is to set the zoom_start and zoom_end so (0,0) to (14,14) skipping only (0,14) as that is already in the table.
I think I'm close. Anyone know where it's off? Thank you. Cheers -Jeremy