I have a trouble in importing my sample data to my table in MySQL.
MySQL table is like this:
CREATE TABLE `draft_client` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`client_name` VARCHAR(255) NULL DEFAULT NULL,
PRIMARY KEY (`id`)
)
In my csv I have a sample output like this:
38,"ADERL INC./UNITED, INC."
115,AETOS HOLDINGS INC.
64,"Another Lane Gateway (Philippines), Inc."
The first column is for client ID and the 2nd is for client_name. I imported the csv like this:
LOAD DATA LOCAL INFILE 'C:/xampp/htdocs/mysite/client_new.csv'
INTO TABLE draft_client
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;
And in my table I have an output like this:
I used HeidiSQL for this.
can you help me?