csv - Why am I not allowed to have repeating IDs in the Primary Key column in MySQL -


i using mysql workbench 6.0 , importing reasonably large (~55mb) .csv file. first column consists of reference ids , second dates. reference ids read in fine first day when comes second day (when reference ids should start repeat) information starts become garbled, though dates remain correct.

it worth noting did not have un box ticked when made table.

i wondering going on here , whether me.

thanks!

a primary key definition unique. that's all: cannot have non-unique primary key, if have defined primary key, cannot have repeating values.

solutions: make non-primary key / index, or add uniqueness making combined primary key date.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -