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

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;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章