答案 0 :(得分:2)
我用你的两行进行了测试
create table mytest(
id int not null auto_increment primary key,
descr varchar(250),
code varchar(50)
) engine = myisam;
load data infile 'E:\file.txt'
into table mytest
fields terminated by ';'
ignore 1 lines
(@descr,@code)
set descr = substring(@descr,1,locate('tar.gz',@descr)+5),
code = substring(@code,locate('PMC',@code))
希望它有所帮助