您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

Mysql数据导入_MySQL

2026/1/26 8:50:34发布7次查看
bitscn.com
1、数据文件格式(位于c:/test.bat):
name, age, incomerange, education, skills, social, ispaidalbert, 23, 0, 0, 3, 3, 0alexandra, 25, 1, 2, 4, 2, 0athena, 24, 0, 1, 3, 4, 0aurora, 23, 1, 2, 5, 2, 0babis, 21, 0, 0, 3, 4, 0bill, 31, 1, 2, 4, 2, 0bob, 32, 1, 1, 3, 1, 1carl, 30, 0, 2, 4, 2, 0catherine, 31, 1, 1, 3, 3, 0charlie, 30, 1, 2, 3, 2, 0constantine, 37, 1, 1, 3, 2, 0dmitry, 35, 2, 2, 1, 1, 1elena, 38, 1, 1, 3, 2, 0eric, 37, 2, 2, 2, 2, 0frank, 39, 3, 1, 3, 1, 1george, 42, 2, 2, 2, 1, 1jack, 43, 3, 1, 1, 1, 1john, 45, 4, 2, 1, 1, 1maria, 43, 2, 1, 3, 1, 0lukas, 45, 3, 2, 1, 1, 1
2、执行导入语言:
create database iweb2;use iweb2;create table sf_users (name varchar(250) not null primary key, age int not null, incomerange int not null, education int not null, skills int not null, social int not null, ispaid int not null); load data infile 'c://test.dat' into table sf_users fields terminated by ',' enclosed by '' lines terminated by '/n' ignore 1 lines;
3、导入结果:
bitscn.com
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product