• 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

Store / Website Column in Magento 2 Admin Grid - Custom Module

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

PHP password_verify

The sum of the user's points

Mysqli Output to a table

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'column_name' in Laravel

phpMyAdmin Accepts NULL in the NOT NULL field

Post Form Data To phpmyadmin Database

Inserting Country Selection into MySQL PHP [duplicate]

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

Correct way to use LIKE '%{$var}%' with prepared statements?

"There is no active transaction" when refreshing database in Laravel 8.0 test

Unable to Edit config.inc.php

mysql slow on updates for a well optimized query

Laravel Database Strict Mode

About Contact Privacy policy Terms and conditions