日期:2014-05-16 浏览次数:20653 次
echo "select * from table_name" | mysql -uroot -Ddb_name | tr '\t' ' ' | awk '{print "INSERT INTO table_name VALUES ("$1",'\''"$2"'\'',"$3","$4","$5","$6",'\''"$7" "$8"'\'');";}'