可能我的问题比较简单 但是毕竟我是一个初学者.所以请各位大大可以说的详细些..win7下 mysql版本是5.1.40 我遇到如下问题.. 我想将一个book.txt导入数据库..book.txt内容如下isbn|title|author last|author first|copyright date|
067973452|notes from underground|dostoevsky|Fyodor|august 1944|因为我建立的authors的表 只有author_id  author_last author_first  country 这四列使用语句是:
load data infile 'd:/book1.txt' replace into table authors 
fields terminated by '|' lines terminated by '\r\n' 
text_field (col1, col2, col3, col4, col5)
set author_last = col3, author_first = col4
ignore col1, col2, col5, 1 lines;本意是忽略authors表中不存在的项. 只导入author_last和author_first 但是出错..请问正确的语句应该是怎样的呢?