1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by
涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from
t where num is null可以在num...
分类:
数据库 时间:
2014-05-01 13:23:55
阅读次数:
443
Visual Studio 2005 移植 - WINVER,warning C4996,
error LINK1104一、WINVER Compile result: WINVER not defined. Defaulting to 0x0502
(Windows Server 2003) wi...
Intellectual blocks result in an inefficient
choice of mental tactics or a shortage of intellectual ammunition.Expressive
blocks inhibit your vital ab...
分类:
其他好文 时间:
2014-05-01 08:26:33
阅读次数:
317
想要按时间段分组查询,首先要了解level,connect
by,oracle时间的加减.关于level这里不多说,我只写出一个查询语句:----level 是一个伪例 select level from dual
connect by level d.dt-2 group by d.dt ...
分类:
数据库 时间:
2014-05-01 08:09:44
阅读次数:
415
[cpp]view
plaincopyvoidCSTest1View::OnDraw(CDC*pDC){CSTest1Doc*pDoc=GetDocument();ASSERT_VALID(pDoc);//TODO:adddrawcodefornativedatahereCRectrcClient;...
分类:
其他好文 时间:
2014-05-01 07:47:58
阅读次数:
322
We sometimes got memory leak problem, and we need to find the leaked memory, Here is a useful tool from MS, UMDH, it is included in WinDBG install package.
Here is a introduction on how to UMDH to identify memory leak problems...
分类:
其他好文 时间:
2014-04-29 13:38:21
阅读次数:
374
【apache配置禁止访问】
1. 禁止访问某些文件/目录
增加Files选项来控制,比如要不允许访问 .inc 扩展名的文件,保护php类库:
Order allow,deny
Deny from all
禁止访问某些指定的目录:(可以用 来进行正则匹配)
Order allow,deny
Deny from all
通...
分类:
其他好文 时间:
2014-04-29 13:16:22
阅读次数:
289
最近亲眼看到快播被大批警察包围,感觉到快播注定要关闭很多东西,很多宅男宅女们又要寂寞了,于是乎,疯狂的研究DHT网络技术
看到网上也有开源的代码,这不,我拿来进行了二次重写,呵呵,上代码:
#encoding: utf-8
import socket
from hashlib import sha1
from random import randint
from struct import u...
分类:
其他好文 时间:
2014-04-29 13:13:20
阅读次数:
420
paip.导入数据英文音标到数据库mysql为空的问题之道解决原理
#---原因:mysql 导入工具的bug
#---解决:使用双引号不个音标括起来.
作者 老哇的爪子 Attilax 艾龙, EMAIL:1466519819@qq.com
转载请注明来源: http://blog.csdn.net/attilax
from log import *
iniLog ...
分类:
数据库 时间:
2014-04-28 10:45:40
阅读次数:
420
paip.日志中文编码原理问题本质解决python
默认的python日志编码仅仅gbk...保存utf8字符错误..输出到个eric5的控制台十默认好像十unicode的,要是有没显示出来的字符,大概十字体问题..调整eric5的字体走ok兰.
#调用封装
from log import *
iniLog (r"c:\enPn2atiEnPh.log")
logx...
分类:
编程语言 时间:
2014-04-28 10:17:40
阅读次数:
395