Chinaunix首页 | 论坛 | 博客
  • 博客访问: 140686
  • 博文数量: 56
  • 博客积分: 245
  • 博客等级: 二等列兵
  • 技术积分: 520
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-08 14:43
个人简介

慢慢来

文章分类

全部博文(56)

文章存档

2017年(5)

2016年(2)

2015年(6)

2014年(28)

2013年(5)

2012年(10)

我的朋友

发布时间:2014-12-19 15:41:14

From sqlmag: http://sqlmag.com/database-performance-tuning/distinct-vs-group一句话:没区别,但最好还是看一下showplanQ: Should I use DISTINCT or GROUP BY to eliminate duplicates in a result set?A: A DISTINCT and GROUP BY usually generate the same query plan, so performance sh.........【阅读全文】

阅读(506) | 评论(0) | 转发(0)

发布时间:2014-08-18 15:25:33

* 转载请注明, 有错误还望指正先说下表结构上的锁类型:    在建表时可以选择三种表的类型:        APL( Allpages locking ): 锁数据页和索引页        DPL( Datapages locking ): 锁数据页        DRL( Dat.........【阅读全文】

阅读(3612) | 评论(0) | 转发(0)

发布时间:2014-07-24 17:48:40

假设有表 Table1 ( name varchar(30) not null )有值:    AA    BB    CC    DD    EE    ...他们需要进行一个循环赛,写出SQL:Anwser:select t1.name, t2.namefrom Table1 t1, Table1 t2where t1.name < t2.name.........【阅读全文】

阅读(352) | 评论(0) | 转发(0)

发布时间:2014-04-03 15:11:59

How to check if triggers enabled?[69] HXHALODB1.dmo_govcorp.1> alter table formula disabletrigger formula_u;Disabling trigger 'formula_u'. The way to checkupdate trigger:[71] HXHALODB1.dmo_govcorp.1> select sysstat2 & 4194304 from sysobjects where name = 'formula'[.........【阅读全文】

阅读(778) | 评论(0) | 转发(0)

发布时间:2014-03-28 17:58:35

先介绍表结构 (table schema):changeset_history:Column name       Type         NullTable            &nb.........【阅读全文】

阅读(545) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册