写一个程序判断字符串A是否为其他两个字符串的组合,组合过程中其他两个字符串的相对顺序不能被破坏。 举例说明:abc和def可以组成字符串adebcf,但不能组成aefbcd,因为def的相对顺序已经被破坏。本题直接从string A入手loop配对即可,代码如下。 1 /***********...
分类:
其他好文 时间:
2014-09-10 17:22:10
阅读次数:
293
一个普通的语句select * from t1, t2 where t1.id = t2.id and t1.name = 'a'; 这个语句在什么情况下最高效?表连接分类: 1. 嵌套循环连接(Nested Loop Join) 2. 排序合并连接(Merge Sort Join):PGA 中的 ...
分类:
数据库 时间:
2014-09-10 17:20:40
阅读次数:
362
环境: SQL Server 2012.
打开SQL Server Profiler. 在菜单中选择New Trace, 连接上SQL Server.
在弹出的窗口中选择Event selection 标签页。
勾掉Audio logout, 这一步没啥大作用,就是去掉一些不需要看的记录。 点击Co...
分类:
数据库 时间:
2014-09-10 17:19:50
阅读次数:
300
简介 在SQL Server中,我们所常见的表与表之间的Inner Join,Outer Join都会被执行引擎根据所选的列,数据上是否有索引,所选数据的选择性转化为Loop Join,Merge Join,Hash Join这三种物理连接中的一种。理解这三种物理连接是理解在表连接时解决性能问题的基...
分类:
数据库 时间:
2014-09-10 17:19:10
阅读次数:
348
Netty3 源码分析 - ChannelEvent
ChannelEvent是和这个Channel相关的IO事件和请求,会由各个ChannelHandler来处理。
事件分为上行和下行两种。当服务器从客户端收到一个消息,那么与之相关的就是一个上行事件(upstream event),流水线中的UpstreamChannelHandler会处理它;如果服务要回应这个...
分类:
Web程序 时间:
2014-09-10 15:49:20
阅读次数:
332
There’s this new and really powerful type of data: event data. Well, it’s not really new. I bet you are already familiar with event data, even if you ...
分类:
其他好文 时间:
2014-09-10 15:42:40
阅读次数:
322
关于CACHE BUFFERS CHAINS描述
CACHE BUFFERS CHAINS latch is acquired when searching
for data blocks cached
in the buffer cache.
Since the Buffer cache is implemented as a
sum of chains...
分类:
其他好文 时间:
2014-09-10 14:13:40
阅读次数:
345
declarecursorstus_curisselect*fromstudents;--定义游标并且赋值(is 不能和cursor分开使用) cur_stu students%rowtype;--定义rowtypebeginopenstus_cur; --开启游标loop...
分类:
其他好文 时间:
2014-09-10 12:15:30
阅读次数:
485
标准的绑定: bind(type,[,data],fn)==>第一个参数是事件类型 第二个可选参数作为event.data 传递给事件对象的额外数据对象 第三个参数为用来绑定的处理函数 简写绑定事件: $('#panel h5.head').mouseover(function(){ }...
分类:
Web程序 时间:
2014-09-10 12:14:40
阅读次数:
298
1.Looper当中loop()方法的作用2.什么是Message对象的Target3.处理一个Message的方法 1 public static void loop() { //静态方法 2 final Looper me = myLooper(); //myLooper是根据...
分类:
其他好文 时间:
2014-09-10 12:08:10
阅读次数:
202