您的位置:首页 > 数据库 > MySQL

mysql建库建表、插入数据和导数文件

2019-05-24 14:31 1731 查看

https://wenku.baidu.com/view/86558b7df12d2af90342e61a.html
1
mysql -u root -p
2
show databases;
create database test001;
use test001;
3
show tables;
create table students(id int unsigned not null auto_increment primary key,name char(8) not null,sex char(4) not null,age tinyint unsigned not null);
describe students;
4
select * from students;
insert into students value (‘1’,‘Tom’,‘F’,‘18’ );
select * from students;
load data local infile ‘D:\student.txt’ into table students;

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: