码迷,mamicode.com
首页 >  
搜索关键字:delete from    ( 68288个结果
提高SQL语句查询效率
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num...
分类:数据库   时间:2014-05-01 13:23:55    阅读次数:443
Oracle按时间段分组统计
想要按时间段分组查询,首先要了解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
[leetcode]Remove Nth Node From End of List @ Python
原题地址: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
【Mysql】select
描述The SELECT statement is used to select data from a database.The result is stored in a result table, called the result-set.大意:select用来从数据库中挑选数据有以下两种形...
分类:数据库   时间:2014-05-01 06:14:32    阅读次数:467
oracle数据库备份
1. 文件查看数据文件、控制文件、日志文件查看如下:select file#, status, enabled, name from V$datafile;--查看数据文件select * from v$controlfile;--控制文件select * from v$logfile;--日志文件...
分类:数据库   时间:2014-05-01 04:49:13    阅读次数:471
Use UMDH to identify memory leak problem
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禁止访问某些文件或目录的方法
【apache配置禁止访问】 1. 禁止访问某些文件/目录 增加Files选项来控制,比如要不允许访问 .inc 扩展名的文件,保护php类库:    Order allow,deny    Deny from all 禁止访问某些指定的目录:(可以用    来进行正则匹配)    Order allow,deny    Deny from all 通...
分类:其他好文   时间:2014-04-29 13:16:22    阅读次数:289
bt种子爬虫程序和种子解析(大蟒蛇语言编写)
最近亲眼看到快播被大批警察包围,感觉到快播注定要关闭很多东西,很多宅男宅女们又要寂寞了,于是乎,疯狂的研究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
走进C++程序世界-----operator new delete 重载
在C++ 的世界里,new 和delete 是关键字,而在C的世界里相对应的malloc和free是函数,关键C++的new和delete分析,详见前面的章节,这里就不在过多的介绍了。链接。 下面来研究下关于new 和delete的重载。  1、对比使用重载和未使用重载  未使用“/*File : operator_new.cpp *Auth : sjin *Date : 2014-04...
分类:编程语言   时间:2014-04-28 10:43:41    阅读次数:406
paip.日志中文编码原理问题本质解决python
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!