From: Date: May 28 2003 4:34am Subject: Re: help with load from file List-Archive: http://lists.mysql.com/mysql/140959 Message-Id: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary_(ID_zdKlbBO9JNYXV4gnZjP3iA)" --Boundary_(ID_zdKlbBO9JNYXV4gnZjP3iA) Content-type: text/plain; charset=US-ASCII; format=flowed Content-transfer-encoding: 7BIT Yes, I simply don't understand this: =========== LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name.txt' [REPLACE | IGNORE] INTO TABLE tbl_name [FIELDS [TERMINATED BY '\t'] [[OPTIONALLY] ENCLOSED BY ''] [ESCAPED BY '\\' ] ] [LINES [STARTING BY ''] [TERMINATED BY '\n'] ] [IGNORE number LINES] [(col_name,...)] ============== Help? Ted On Tuesday, May 27, 2003, at 09:35 PM, Martin Gainty wrote: > Ted- > check out > http://www.mysql.com/doc/en/LOAD_DATA.html > (go to mysql prompt and issue command LOAD DATA INFILE) > keeping attention to format for INFILE > Hth, > Martin > ----- Original Message ----- > From: > To: "MySQL List" > Sent: Tuesday, May 27, 2003 9:25 PM > Subject: help with load from file > > >> Hi, >> >> I have a text file where lines look like this: >> >> 3 Mac Performa6300CD 338211 LOV 109 \ \ \ >> 4 Mac G3BT/266 350755 LOV 003 \ 9.1 104.103 >> >> Except they are not wrapped like in this email! >> Each column is separated by a 'tab' (at least I think so). >> The "\" character represents data I don't know (null). >> >> I have created a db and a table where I would like to upload the data; >> the table has 9 filelds; the data in the rows, like row 3 and row 4 >> above (3 & 4 is also part of the data, the record_id), are in the same >> order as the fields occur in the table. The table fields are setup >> with types and so on. >> >> How do I get this data in there? I think I am missing somethings? >> (I'm trying to do it with phpMyAdmin but I can do it from CLI if >> someone would be so kind as to show me?) >> >> Thank you, >> Ted --Boundary_(ID_zdKlbBO9JNYXV4gnZjP3iA)--