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;