while executing same file multiple times the auto incrementation value will be wrong. my file is sample.csv
name,phone,address
a,9401003026,dsa
b,9658746542,fsa
c,9865742310,hgfh
d,9865869537,hf
e,9401003026,hf
s,9658746542,hf
h,9865742310,hf
j,9865869537,hf
and my query is
LOAD DATA LOCAL INFILE '/home/anson/AnsonBackup/python/newtest/sample.csv'
INTO TABLE `sample` COLUMNS TERMINATED BY ','
LINES TERMINATED BY '\n' IGNORE 1 LINES
(named,phone,address);
if i excecute one time the value of id will be 8 but when i reexecute the same file the id starts from 16..why????
my table is
CREATE TABLE `sample` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`named` VARCHAR(30) DEFAULT NULL,
`phone` VARCHAR(30) DEFAULT NULL,
`address` VARCHAR(30) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=latin1