赞
踩
DDL:data definition language
create database tempdb;
drop database tempdb;
alter database fruitdb character set utf8;
show databases;
show create database mydb;
use mydb;
select database();
create table t_user(id int,name varchar(20));
drop table t_user;
alter table t_user rename user;
alter table t_user add address varchar(100);
alter table t_user drop address;
alter table t_user modify name varchar(25);
alter table t_test change id id int primary key auto_increment;
alter table t_user2 add constraint fk_user_deptment foreignkey(deptid) references deptment(deptid);
alter table t_user modify name varchar(25) after age;
alter table t_user change name new_name varchar(20);
show tables;
show create table t_user;
desc t_user;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。