mysql数据表的编辑

创建数据表

create  table  [if not  exists] 表名(字段列表, [约束或索引列表]) [表选项列表];

删除数据表

drop   table  [if  exists]  表名;

表插入数据

insert into  表名(字段名1,字段名2....values (a1,值a2.....)(b1,值b2.....).....

查找表中的数据

 select <字段1,字段2...> from < 表名 > where < 表达式 >

 删除表中的数据

delete from 表名 [where条件] [order排序] [limit限定]

修改表

alter  table  表名   修改语句1,修改语句2.....

增删改字段:

增:alter  table  表名  add  [column]  字段名  字段类型  字段属性;

删: alter  table  表名  drop  字段名

改:alter  table  表名  change  原字段名  新字段名  新字段类型  新字段属性;

原文地址:https://www.cnblogs.com/ybygb-geng/p/9460082.html