2013年3月12日
摘要: select *from (SELECT @num:=0,@AAA:= 0) temp join( select @num := if(@AAA = AAA, @num + 1, 1) as row_number, @AAA := AAA as Dummy, mt.* from table1 mt where Created_Time BETWEEN DATE_SU... 阅读全文
posted @ 2013-03-12 17:06 思静 阅读(618) 评论(0) 推荐(0) 编辑
摘要: alter table table1 add (F1 CHAR(1) default 'O'); -- 如果是大表, 很耗时, 会将之前的数据此字段全部赋值 ==>alter table table1 add (F1 CHAR(1)); alter table table1 modify F1 default 'O'; 阅读全文
posted @ 2013-03-12 17:03 思静 阅读(199) 评论(0) 推荐(0) 编辑