http://www.cnblogs.com/mr-wid/archive/2013/05/09/3068229.html#c5
创建一个数据库:create database 数据库名 [其他选项];
创建数据库表:create table 表名称(列声明);
向表中插入数据:insert [into] 表名 [(列名1, 列名2, 列名3, ...)] values (值1, 值2, 值3, ...);
查询表中的数据:select 列名称 from 表名称 [查询条件];
按特定条件查询: select 列名称 from 表名称 where 条件;
更新表中的数据:update 表名称 set 列名称=新值 where 更新条件;
删除表中的数据:delete from 表名称 where 删除条件;
添加列:alter table 表名 add 列名 列数据类型 [after 插入位置];
修改列:alter table 表名 change 列名称 列新名称 新数据类型;
删除列:alter table 表名 drop 列名称;
重命名表:alter table 表名 rename 新表名;
删除整张表:drop table 表名;
删除整个数据库:drop database 数据库名;