第六章:MySQL高级进阶-导入数据

直接学习:https://edu.csdn.net/course/play/27328/370718
导入数据
#1、导入数据的几种方式
方法一:

delete from employee;
load data infile 'C:\\ProgramData\\MySQL\\MySQL Server 8.0\\Uploads\\employee.txt' into table employee character set utf8
fields terminated by ','
enclosed by ""
lines terminated by'\r\n';

方法二:

creat database testlb;
use testlb;
source d:/mylb.sql
show tablesselect * from employee;
发布了107 篇原创文章 · 获赞 6 · 访问量 968

猜你喜欢

转载自blog.csdn.net/weixin_43597208/article/details/105522551