标签:word database sql 退出 rename username 建库 数据库 字段
(help ?)\h \?
\q
\c
cls
create database db_name
drop database db_name
无法修改
show databases
use db_name
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
标签:word database sql 退出 rename username 建库 数据库 字段
原文地址:http://www.cnblogs.com/sunguotao/p/7350434.html