vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, I have data in the form of: Date,Open,High,Low,Close,Volume,Adj Close 2007-09-20,7728.78,7745.25,7696.94,7735.09,000,7735.09 2007-09-19,7629.11,7771.02,7627.75,7750.84,000,7750.84 ....more numbers .. And a query in the form of: LOAD DATA LOCAL INFILE 'yhodat.csv' INTO TABLE testtable FIELDS TERMINATED BY "," IGNORE 1 LINES (date, open, high, low, close, volume); Now even if I add a @dummy field to the query after `volume' mysql keeps warning with (code 1262.... Row 1 was truncated; it contained more data than there were input columns.. etc. It should ignore the last field since it is not specifyde in the query, and the tablefields are all correct. My question is, does mysql always complain no matter how many fields are ignored and is this normal behavior ? Thankx. Osk. |