connectionTimeout与soTimeout的差异,前者指创建一个有效的客户端到服务端链接的最大允许时间,后者指socket接收data的时间。connectionManager.getParams().setConnectionTimeout(50);connectionManager....
分类:
其他好文 时间:
2014-05-23 11:00:07
阅读次数:
346
sql 语句比较两个很基础的SQL
可是我一不小心就写错了。特此记录。SELECT*FROM`jk_usertags`utWHEREut.`id`NOTIN(SELECTtagidFROM`jk_tagvsuser`GROUPBYtagid)SELECT*FROM`jk_usertags`ut,(S...
分类:
数据库 时间:
2014-05-23 10:43:12
阅读次数:
344
Remove Duplicates from Sorted Array IIFollow up
for "Remove Duplicates":What if duplicates are allowed at mosttwice?For
example,Given sorted array A =...
分类:
其他好文 时间:
2014-05-23 10:23:40
阅读次数:
250
表T_phone中字段:Id, Haoduan, Adress, Type,
Quhao1,ROW_NUMBER()是个开窗函数,它可以与聚合函数一起用,就算删除表中的列,排序也不会乱select *,ROW_NUMBER()
over(order by id) as 排序 from T_Phone...
分类:
其他好文 时间:
2014-05-20 13:16:26
阅读次数:
260
一:上图,不清楚的看代码注解,很详细了二:具体代码窗体代码using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using Sy...
题目:从上往下打印出二叉树的每个节点,同一层的节点按照从左到右的顺序打印。分析:其实就是按层的遍历方式#include #include using
namespace std;struct BinaryTree{ int data; BinaryTree* lchild; Bin...
分类:
其他好文 时间:
2014-05-20 10:13:47
阅读次数:
242
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Data;using
System.Data.SqlClient;namespace AddressBook{...
分类:
数据库 时间:
2014-05-20 10:08:21
阅读次数:
328
for i in [n+1 N] M=rand(1,i) if(M<=n) swap the
ith and Mth
data证明方法:1.初始情况,当尚未选择时,出现在pool中的n个元素的概率相同都是1,证明当第n+1葛元素以n/(n+1)的概率被选中时,前n个元素在pool中的概率为...
分类:
其他好文 时间:
2014-05-20 09:43:42
阅读次数:
294
--SELECT TOP 3 Name,Age,Gender FROM View_Student
WHERE GROUP having ORDER BY id
DESC----在最终生成用户想要的数据之后,才进行排序,如果不得不排序,那么就尽可能吧消耗减到最小--ALTER VIEW View_St...
分类:
其他好文 时间:
2014-05-20 09:20:36
阅读次数:
360
今天准备在 @zhangkai05
写的小工具model_sql基础上,进一步完善功能,使其更加自动化。方便建模人员开发etl任务。源代码更改后 ,会发布到
git(url地址)上,逐步完善。描述现状及问题团队 数据仓库建模在2013年下开始使用 oracle sql developser data...
分类:
数据库 时间:
2014-05-20 08:08:37
阅读次数:
643