excel 导入mysql


1,准备一个数据表excel文件

2,用excel打开数据表,另存为csv格式 

3.用记事本打开csv文件,另存为txt格式

4,删除xls和csv格式的文件,留下txt唯一一个文件

5,navicat-->tables-->右击-->导入csv文件

6,用一条sql讲一张表里的数据插入到另一张表

replace into table1(colm1,colm2,clom3) select colm1,colm2,colm3 from table2

insert into table1(colm1,colm2,clom3) select colm1,colm2,colm3 from table2




猜你喜欢

转载自blog.csdn.net/shashago/article/details/80495765