Tiramisu
Warlord
I am trying to use a simple for-loop and the internet suggests something like
but this does not work for me. Even when I am just using
DECLARE @cnt INT = 0;
to declare a simple variable, then the whole code will not work.
So is the SQL in Civ6 different than the "normal" version of SQL or am I making any mistakes?
Code:
DECLARE @cnt INT = 0;
WHILE @cnt < cnt_total
BEGIN
-- {...statements...}
SET @cnt = @cnt + 1;
END;
but this does not work for me. Even when I am just using
DECLARE @cnt INT = 0;
to declare a simple variable, then the whole code will not work.
So is the SQL in Civ6 different than the "normal" version of SQL or am I making any mistakes?