摘要: 在已有的表增加一个列alter table 表名称 add 列名称 列类型 列属性...默认在表的最后 在已有的表增加一个列alter table 表名称 add 列名称 列类型 列属性...after 列名称(将会出现在指定列后) 在已有的表删除一个列alter table 表名称 dro... 阅读全文
posted @ 2015-05-13 17:46 museluo 阅读(142) 评论(0) 推荐(0)
摘要: 建表其实就是声明列的过程,建表语句:create table 表名称 (列名称1 列类型 列属性 默认值,列名称2 列类型 列属性 默认值,index xx (xx))engine=储存引擎 charset=字符集;比如,create table stu(id int primary key a... 阅读全文
posted @ 2015-05-13 10:59 museluo 阅读(275) 评论(0) 推荐(0)