Created
February 8, 2016 15:37
-
-
Save oak-tree/e59415f634fcbaaf2414 to your computer and use it in GitHub Desktop.
how to load csv file into mysql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LOAD DATA INFILE 'treksheb.csv' into table treks_heb | |
| -> FIELDS TERMINATED BY ',' | |
| -> ENCLOSED BY '"' | |
| -> LINES TERMINATED BY '\r\n' | |
| -> IGNORE 1 LINES | |
| -> (ProductId,name,Shortdescription,FullDescription,AttributeTypeId,CustomValue,DisplayOrder,SpecificationAttributeName,SpecificationAttributeOptionName); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
make sure to select database
make sure the file in inside
data\{dbname}