需求:把文件中的数据插入到表category中
文件内容:
sql语句:
load data infile 'D:/cate.txt' into table category
fields terminated by ','
lines terminated by '\r\n';
运行结果:
执行成功,数据插入到了表中。
需求:把文件中的数据插入到表category中
文件内容:
sql语句:
load data infile 'D:/cate.txt' into table category
fields terminated by ','
lines terminated by '\r\n';
运行结果:
执行成功,数据插入到了表中。