I'm trying to split a String separated by comma and then call a function of sql with each splitted strings. The length of strings to split is variable.
I have this code:
setlocal enabledelayedexpansion
@echo off
set CCVs="0008123123,000815432123"
for /F "delims=," %%a in ("