1、创建数据表
create table student( id int, name varchar(20), gender varchar(10), birthday date );
2、查看当前数据库中所有数据表
show tables;
3、查看某表所有字段信息
desc student;
4、修改数据表表名
alter table student rename to stu;
5、修改数据表字段名
alter table stu change name new_name varchar(10);
6、修改数据表某字段的数据类型
alter table stu modify field type;
7、给当前数据表增加字段
alter table stu add address varchar(50);
8、从当前数据表中删除字段
alter table stu drop address;
9、删除数据表
drop table table_name;
标签:基操,varchar,name,数据表,stu,SQL,table,alter From: https://www.cnblogs.com/shixiaogu/p/17240072.html