• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Error while importing CSV file in database

mysqlcsvphpmyadmin


PHP Snippet 1:

LOAD DATA INFILE '/path/to/test.csv'
INTO TABLE tmp
FIELDS TERMINATED BY ';'
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS
(id,test);

Related Snippets

MySQL order by field in Eloquent

Laravel Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) on a sub query with "ROW_NUMBER() OVER PARTITION"

Select option from dropdown menu with PHP and mySql

Dynamic dropdown Ajax PHP request

Inserting Country Selection into MySQL PHP [duplicate]

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

Live search query using JS and PHP for QA forum

What will the best solution for this multiple optional filter?

PHPMyAdmin not working as intended at remote server. Error 500, $respond not found

MySQL upgrade causing unexpected results on simple WHERE clauses

renameColumn migration fails for existing column with columns does not exist error

How to map the two arrays with a duplicate value?

find in set in laravel ? example

Select option menu read from database and use it's values

What is wrong with this inner join sql query

About Contact Privacy policy Terms and conditions