Great guys, it worked. Thx very much to all!
The following command was the right one
LOAD DATA LOCAL INFILE '/home/sigi/tmp/sql.txt'
INTO TABLE tt_news
FIELDS TERMINATED BY '|'
(headline,text,author)
Thx again for helping me!
First of all, thx for all your answers. I'm using phpMyAdmin atm and was trying the LOAD DATA step.
I typed
LOAD DATA INFILE '/home/sigi/tmp/sql.txt'
INTO TABLE tt_news
FIELDS TERMINATED BY '|'
(headline,text,author)
into the SQL-section of PhpMyAdmin and uploadad the file with the txt-file...
Hello,
first of all, i want to say that i am new to sql-programming, so this might be an easy one for you.
On the one hand i have a mysql-table called "news". It has 4 fields, "uid" (with auto_increment attribute), "headline", "text", "author". On the other hand i have a txt-file in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.