DDL对数据库的操做:http://blog.csdn.net/baidu_37107022/article/details/72334560数据库
1)方法概览markdown
2)演示.net
//建立的前提条件:指明使用的数据库 :use database test1;
//建立表create table student (id int,name varchar(100),age int);
blog
//查看数据库下的全部表show tables;
图片
//查看指定的表的字段信息(表的内容)desc student;
get
//修改表(添加一个列)alter table student add score int;
it
//删除表的一个列alter table student drop score;
table
//修改表的某一个列的类型alter table student modify age text;
class
//修改列的名称alter table stu change age ag int;
test
//修改表名rename table student to stu;
//删除表 drop table stu;