I created table using command:
CREATE TABLE genre(
genre_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(20) NOT NULL
);
Then I filled table with data using command:
load data infile 'D:/MySQL/.../genres.txt' into table genre(name);
There is one record on every line.
Problem occured when I tried to print content of table into terminal using command:
select * from genre;
Output:
+----------+--------------+
| genre_id | name |
+----------+--------------+
| 1 | alternative
| 2 | blues
| 3 | classic
| 4 | country
| 5 | dance
| 6 | electro
|7 | folk
| | pop
| | rap
|0 | jazz
| 11 | latino
|12 | opera
| | r&b
| 14 | reagge
|5 | rock
| 16 | metal |
|
+----------+--------------+
(vertical bars are printed wrong too)
Does anyone know why is output of first column printed wrong? I am mysql beginner so sorry if it is a dumb question.
File content:
alternative
blues
classic
country
dance
electro
folk
pop
rap
jazz
latino
opera
r&b
reagge
rock
metal