Search
 
SCRIPT & CODE EXAMPLE
 

SQL

How to import CSV file into a MySQL table

LOAD DATA LOCAL INFILE  
'c:/temp/some-file.csv'
INTO TABLE your_awesome_table  
FIELDS TERMINATED BY ',' 
ENCLOSED BY '"'
LINES TERMINATED BY '
'
IGNORE 1 ROWS
(field_1,field_2 , field_3);
Comment

how to dump .csv file into mysql

LOAD DATA LOCAL INFILE 'c:/country.csv' 
INTO TABLE country 
FIELDS TERMINATED BY ',' 
ENCLOSED BY '"'
LINES TERMINATED BY '
'
IGNORE 1 ROWS;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql max value in column 
Sql :: delete from table where length sql 
Sql :: DIFFERENCE BETWEEN 2 COLN IN SQL 
Sql :: sql select where id not exists in another table 
Sql :: linux upload database to mysql 
Sql :: sqlalchemy existing db file 
Sql :: postgres sql alter table delete row 
Sql :: add column first position mysql 
Sql :: db count rows 
Sql :: merge command in sql 
Sql :: sql alter table 
Sql :: sql constraint to check date less than current date 
Sql :: convert .mdf to .bak 
Sql :: mysql set column equal to another automatic 
Sql :: php select data from mysql database without column name 
Sql :: mysql select random rows large table 
Sql :: get last inserted primary key 
Sql :: how to create local postgres database 
Sql :: apex for oracle 11g 
Sql :: mysql comparing dates 
Sql :: how to close external sql connection in laravel 
Sql :: min and max salary and name in sql 
Sql :: aggregate functions 
Sql :: group by sql 
Sql :: ms sql select datetime as date 
Sql :: nested query 
Sql :: insert into 
Sql :: on delete set default 
Sql :: mysql isshow 
Sql :: SQL MAX() and MIN() with Strings 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =