經安全檢測,此網站為安全網站,請放心前往原始網址!

Shell script that parses a CSV file, builds sql insert calls, then executes them - dBforums

rowcount = 0 cat $CSV_DIR/$1 | while read fileline do rowarray[i] = $fileline rowcount = $rowcount + 1 done i = 0 query = "" while [ "$i" -le "$rowcount" ] do n = split(${rowarray[$i]}, colarray, ",") if [ "$n" -ge "2" ] then query = $query + "\n" + "

www.dbforums.com

網址安全性掃描由 google 提供