hucuibai 当前离线
四级士官
TOP
sed -e "s/^/(/;s/$/),/" PlayerPropertyLog20110329.txt>456.sql复制代码
@echo off >456.sql ( echo use !str2!^; echo insert into playerpropertylog^(列名^) values for /f "delims=" %%a in ('more %%i') do echo ^(%%a^)^, )复制代码
@echo off type PlayerPropertyLog20110329.txt>1.txt (for /f "delims=" %%i in (1.txt) do echo ^(%%i^)^,)>2.sql&&del /s /q 1.txt>nul复制代码