摘要: alter table 表名 change 列名 新列名 数据类型;如果单纯想改变某一列的数据类型,只要新老列名相同即可。 阅读全文
posted @ 2012-08-28 20:35 Mr.Cooode 阅读(438) 评论(0) 推荐(0)
摘要: alter table 表名 modify Date 新的数据类型; 阅读全文
posted @ 2012-08-28 17:52 Mr.Cooode 阅读(421) 评论(0) 推荐(0)
摘要: 方法一:update 表名 set 列名 = null;方法二:alter table 表名 drop 列名; alter table 表名 add 列名 数据类型;据说在处理大型数据的时候方法一的处理速度没有方法二的快,但是要在确定要删除的列不影响其他部分的情况下使用方法二。 阅读全文
posted @ 2012-08-28 17:47 Mr.Cooode 阅读(273) 评论(0) 推荐(0)