勇往直前 2019-12-27
查看cr01表里面的内容:select * from cr01;
首先导出一个xls文件:select sx,mz,bz from cr01 into OUTFILE ‘C:/Users/del/Desktop/a.xls‘
首先删除数据(情况cr01里面的记录):delete from cr01;
导入xls表格里面的内容:load data infile ‘C:/Users/del/Desktop/a.xls‘ into table cr01;
再次查询cr01里面的内容:select * from cr01;
==========================================================================
数据准备:
导出为xls文件:
select sx,mz,bz from cr01 into OUTFILE ‘C:/Users/del/Desktop/a.xls‘
查询xls文件:
删除cr01里面的内容:
delete from cr01;
导入xls里面的内容:
load data infile ‘C:/Users/del/Desktop/a.xls‘ into table cr01;
查询cr01里面的内容:
select * from cr01;