- @Echo Off
- For /F "tokens=1,2 delims=|" %%a In (rowcount.csv) Do (
- Set "Flag="
- For /F "delims=:" %%c In ('Findstr /n .* "%%a"') Do If "%%b" EQU "%%c" Set "Flag=a"
- If Not Defined Flag (
- For /L %%d In (1,1,3) Do (
- If Not Defined Flag (
- Start /wait "" "这里自己写SQL的语句"
- For /F "delims=:" %%e In ('Findstr /n .* "%%a"') Do If "%%b" EQU "%%e" Set "Flag=a"
- )
- )
- )
- )
复制代码
|