Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[COLOR=green]
/*
@sOption1 and @sOption2 are input params
*/
[/color]
While @iterator <= @iParamCount
BEGIN
CASE
WHEN @iterator = 1 AND Len(@sOption1) > 0 THEN
INSERT INTO myTable (col1, col2) VALES ('v1', @sOption1)
WHEN @iterator = 2 AND Len(@sOption2) > 0 THEN
INSERT INTO myTable (col1, col2) VALES ('v1', @sOption2)
END
SET @iterator = (@iterator + 1)
END