时间:2021-07-01 10:21:17 帮助过:26人阅读
show create database db_name;
create table `user`(`id` int(11), `username` varchar(20), password varchar(32));
drop table table_name
alter table old_table_name rename new_table_name;
show tables;
show create table table_name;
alter table table_name add table_field_first varchar(32) first;
alter table table_name add table_field_second varchar(32) after table_field_first;
alter table table_name drop table_field;
alter table table_name change old_table_name new_table_name varchar(32);
alter table table_name modify table_field varchar(50);
desc table_name
dos下【mysql】的基础操作
标签:word database sql 退出 rename username 建库 数据库 字段