mysql Invalid column count in CSV input while importing csv file

前端 未结 2 2014
误落风尘
误落风尘 2020-12-22 06:03

I have a table in the database called locations which contains 2 columns(id which is auto incremented , location) , And I have a csv c

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-22 06:42

    Maybe you should use:

    $array = array_map('str_getcsv', file('file.csv'));
    

    You have more option to check variables.

提交回复
热议问题