日期:2014-05-17 浏览次数:20736 次
$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());
------解决方案--------------------