时间:2021-07-01 10:21:17 帮助过:6人阅读
$arr=file("aa.csv"); file_put_contents('aa.csv',join("",array_slice($arr,20))); mysql_connect('localhost',"root",''); $sql="load data infile '绝对路径/aa.csv' into table test.csv fields terminated by ','"; //库名:test,表名:csv mysql_query($sql) or die(mysql_error());
------解决方案--------------------