慢慢来
发布时间: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.........【阅读全文】
发布时间:2014-08-18 15:25:33
* 转载请注明, 有错误还望指正先说下表结构上的锁类型: 在建表时可以选择三种表的类型: APL( Allpages locking ): 锁数据页和索引页 DPL( Datapages locking ): 锁数据页 DRL( Dat.........【阅读全文】
发布时间: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.........【阅读全文】
发布时间: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'[.........【阅读全文】
发布时间:2014-03-28 17:58:35
先介绍表结构 (table schema):changeset_history:Column name Type NullTable &nb.........【阅读全文】