1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by
涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from
t where num is null可以在num...
分类:
数据库 时间:
2014-05-01 13:23:55
阅读次数:
443
import java.io.*;import java.util.*;import
java.util.concurrent.*;public class SearchFile{ public static void main(String
... strings) { final int FI....
分类:
其他好文 时间:
2014-05-01 13:18:50
阅读次数:
253
1 package com.example.printscreen; 2 3 import
java.io.FileNotFoundException; 4 import java.io.FileOutputStream; 5 import
java.io.IOException; 6 impo.....
分类:
其他好文 时间:
2014-05-01 10:38:08
阅读次数:
464
#import
"loveView.h"//点击按钮-(void)buttonclick{UIWindow *window = [UIApplication
sharedApplication].keyWindow;loveView *loveview = [[loveView alloc] ini...
分类:
其他好文 时间:
2014-05-01 08:14:54
阅读次数:
310
想要按时间段分组查询,首先要了解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
原题地址:http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/题意:Given
a linked list, remove thenthnode from the end of list and return its he...
分类:
编程语言 时间:
2014-05-01 06:42:15
阅读次数:
332
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
package project02_Order_management.util;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
/**
* 一个JTable工具类
* 进行初始化...
分类:
其他好文 时间:
2014-04-29 13:38:20
阅读次数:
393
【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