Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-16 23:07:09
阅读次数:
196
Implement a MyQueue class which implements a queue using two stacks./*Use two stacks, when enqueue, first pop all the elements in stack2 on stack1, th...
分类:
其他好文 时间:
2014-07-16 20:39:50
阅读次数:
234
Constructing selectorsFor convenience,response objects exposes a selector on .selector attribute,it's totally ok to use this shortcut when possible.//...
分类:
其他好文 时间:
2014-07-15 09:18:04
阅读次数:
220
Spring-Boot's auto-configurer seems good for simple applications. For example it automatically creates DataSource and JdbcTemplate, when you need to c...
分类:
数据库 时间:
2014-07-14 09:39:24
阅读次数:
442
一 生词sufferer 患者 sneeze打喷嚏 fever 发烧 nasal 鼻的 a runny nose流鼻涕 passage 一段,通道stage 阶段,舞台 aspirin阿司匹林 mutual 共同的 ailment 疾病 insomnia 失眠pace 步伐,加快 vodka 伏尔加...
分类:
其他好文 时间:
2014-07-13 23:54:51
阅读次数:
346
SQLServer 2005 SELECT d.name N'TableName', d.xtype N'TableType', a.colorder N'ColumnIndex', a.name N'ColumnName', (case when COLUMNPROPERTY( a.id,a.na...
分类:
数据库 时间:
2014-07-13 08:58:15
阅读次数:
197
select a.TABLE_NAME as "TableName", case when (select count(*) from user_views v where v.VIEW_NAME =a.TABLE_NAME )>0 then 'V' else 'U'end as "TableTyp...
分类:
数据库 时间:
2014-07-13 00:44:11
阅读次数:
308
一天查看数据库长会话,发现1个sql跑得很慢,1个多小时不出结果,花了点时间把它给优化了。
优化前:
SELECT 20131023,
"A2"."ORG_ID",
COUNT(DISTINCT NLSSORT(CASE "A2"."RES_TYPE"
WHEN 'DP' THEN
...
分类:
其他好文 时间:
2014-07-12 23:48:46
阅读次数:
217
//only set DialogResult when window is ShowDialog before if(System.Windows.Interop.ComponentDispatcher.IsThreadModal) m_Ow...
Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-12 08:24:00
阅读次数:
258