Good morning everybody,
i´m quite frustrated, because i´m not able to fill correctly a txt-file in a created table in mysql.
I want to integrate this file:
http://www.bilder-hochladen.net/files/big/7e6h-1d-642e.jpg
into this tablestruture in mysq:
http://www.bilder-hochladen.net/files/7e6h-1e-f457.jpg
I tried several experiments without getting any succes: :(.
I used this:
LOAD DATA LOCAL INFILE '..outfile.txt'
INTO TABLE dwd.test
LINES TERMINATED By '\r\n';
--> 0 row(s) affected
Records: 1 Deleted: 0 Skipped: 1 Warnings: 13
Then:
LOAD DATA LOCAL INFILE '..outfile.txt'
INTO TABLE dwd.test
LINES TERMINATED By '\r';
--> 0 row(s) affected
Records: 1 Deleted: 0 Skipped: 1 Warnings: 13
Then:
LOAD DATA LOCAL INFILE '..outfile.txt'
INTO TABLE dwd.test
LINES TERMINATED By '\r';
--> 0 row(s) affected
Records: 12054 Deleted: 0 Skipped: 12054 Warnings: 156702
http://www.bilder-hochladen.net/files/big/7e6h-1f-c0c7.jpg
It isn´t the result which I wanted to get.
I tried to use other commands or to get inspirations by the mysql manual, but it doesn´t help. For example, I´ll get error 1265, using the command "Replace".
So, that is why, I need your help. May you help me. What am I doing wrong, do you have andy ideas for solving my problem?
I Would be greatful to hear your ideas!
Edit:
Create-Table-Command:
delimiter $$
CREATE TABLE `test` (
`id` bigint(20) unsigned NOT NULL,
`STAT` int(10) unsigned NOT NULL,
`JA` int(10) unsigned NOT NULL,
`MO` int(10) unsigned NOT NULL,
`TA` int(10) unsigned NOT NULL,
`TGK` int(11) DEFAULT NULL,
`TT0730` int(11) DEFAULT NULL,
`TT1430` int(11) DEFAULT NULL,
`TT2130` int(11) DEFAULT NULL,
`TMK` int(11) DEFAULT NULL,
`RNS` int(11) DEFAULT NULL,
`SH` int(11) DEFAULT NULL,
`NSH` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8$$
i´m quite frustrated, because i´m not able to fill correctly a txt-file in a created table in mysql.
I want to integrate this file:
http://www.bilder-hochladen.net/files/big/7e6h-1d-642e.jpg
into this tablestruture in mysq:
http://www.bilder-hochladen.net/files/7e6h-1e-f457.jpg
I tried several experiments without getting any succes: :(.
I used this:
LOAD DATA LOCAL INFILE '..outfile.txt'
INTO TABLE dwd.test
LINES TERMINATED By '\r\n';
--> 0 row(s) affected
Records: 1 Deleted: 0 Skipped: 1 Warnings: 13
Then:
LOAD DATA LOCAL INFILE '..outfile.txt'
INTO TABLE dwd.test
LINES TERMINATED By '\r';
--> 0 row(s) affected
Records: 1 Deleted: 0 Skipped: 1 Warnings: 13
Then:
LOAD DATA LOCAL INFILE '..outfile.txt'
INTO TABLE dwd.test
LINES TERMINATED By '\r';
--> 0 row(s) affected
Records: 12054 Deleted: 0 Skipped: 12054 Warnings: 156702
http://www.bilder-hochladen.net/files/big/7e6h-1f-c0c7.jpg
It isn´t the result which I wanted to get.
I tried to use other commands or to get inspirations by the mysql manual, but it doesn´t help. For example, I´ll get error 1265, using the command "Replace".
So, that is why, I need your help. May you help me. What am I doing wrong, do you have andy ideas for solving my problem?
I Would be greatful to hear your ideas!
Edit:
Create-Table-Command:
delimiter $$
CREATE TABLE `test` (
`id` bigint(20) unsigned NOT NULL,
`STAT` int(10) unsigned NOT NULL,
`JA` int(10) unsigned NOT NULL,
`MO` int(10) unsigned NOT NULL,
`TA` int(10) unsigned NOT NULL,
`TGK` int(11) DEFAULT NULL,
`TT0730` int(11) DEFAULT NULL,
`TT1430` int(11) DEFAULT NULL,
`TT2130` int(11) DEFAULT NULL,
`TMK` int(11) DEFAULT NULL,
`RNS` int(11) DEFAULT NULL,
`SH` int(11) DEFAULT NULL,
`NSH` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8$$