I am learning and new to CREATE FUNCTIONS - how to I add a WHILE LOOP in a function:CREATE FUNCTION fn_list_the_number(@count INT)RETURNS TABLEASRETURN(WHILE (@count <= 10) BEGIN PRINT CAST(@count AS NVARCHAR); SET @count = @count + 1; END)
↧