2022-01-14
閱讀量:
507
sql導(dǎo)入數(shù)據(jù)
導(dǎo)入數(shù)據(jù)
show variables like '%secure%';-- 查看安全路徑
load data infile "C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/employee.csv"
into table emp
fields terminated by ','
ignore 1 lines;
select * from emp; -- 檢查導(dǎo)入數(shù)據(jù)內(nèi)容
select count(*) from emp; -- 檢查導(dǎo)入數(shù)據(jù)總行數(shù)
-- 更新數(shù)據(jù)
-- set sql_safe_updates=0; -- 設(shè)置數(shù)據(jù)庫安全權(quán)限






評(píng)論(0)


暫無數(shù)據(jù)
CDA考試動(dòng)態(tài)
CDA報(bào)考指南
推薦帖子
0條評(píng)論
1條評(píng)論
0條評(píng)論