1
我有進口時執行使用phpMyAdmin以下語句文件看起來像這樣如何在使用phpmyadmin導入時忽略雙引號?
"1106837", "Jabbar", "33.29106", "73.48639", "PK", "Asia/Karachi"
"1106838", "Dhangdev Saiyidān", "33.26424", "73.41412", "PK", "Asia/Karachi"
"1106839", "Dheriān", "33.255", "73.42722", "PK", "Asia/Karachi"
.
.
.
的文件。
LOAD DATA INFILE 'C:\\wamp\\tmp\\phpC108.tmp' INTO TABLE `allcountries` FIELDS
TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'(
`geonameid` , `place_name` , `lat` , `lng` , `country_code` , `city`
的問題是雙引號(「)也被插入到表列。我不需要雙引號從文本文件
謝謝。有用。 – shaikh 2012-02-06 10:27:20