• 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

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

SQL AVG() to 2 decimals

Dropdown with current value from Mysql

phpMyAdmin Accepts NULL in the NOT NULL field

Install mysql client in docker image

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

How to disable only_full_group_by option in Laravel

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

What is wrong with this inner join sql query

Laravel print last executed SQL query with Query log

backup files to google drive using PHP

Pages are working fine on localhost but not running on the hosting server

Dynamic table in HTML using MySQL and php

MySQL - Connection failed: No route to host

About Contact Privacy policy Terms and conditions