我剛剛從data.gov下載了一大堆文本文件,並且在文本文件中有一些我真的不需要的字段。將文本文件的特定列導入到mysql中..這可能嗎?
有沒有辦法導入列[1,3],剩下的呢?
我想我會導入使用'加載數據文件',但沒有看到任何關於如何只導入某些列的MySQL頁面。 http://dev.mysql.com/doc/refman/5.0/en/load-data.html
這些字段由^分隔。 我好清楚,如果txt文件一行是
00111^first column entry^second column entry^this would be the 3rd column
我試圖讓我的MySQL表包含
first column entry | this would be the 3rd column
感謝特雷弗,我知道這是一個選項,但希望他們是一種方法來做到這一點到MySQL。看起來像沒有 – pedalpete 2011-02-11 23:50:21