1、表访问方式优化:a)普通表优先“Index Lookup 索引扫描”,避免全表扫描大多数场景下,通过“Index Lookup 索引扫描”要比“Full Table Scan (FTS) 全表扫描”效率要高的多。在编写SQL时,为了保证查询能够使用索引,需要避免出现如下场景:is null 和 ...
分类:
数据库 时间:
2014-08-14 10:34:28
阅读次数:
353
头文件中有一个重要的函数 rand() , 可以作为随机数发生器。
现在现在我想产生一个随机数, 我使用如下的程序:
#include
#include
using namespace std;
int main()
{
cout << rand() << endl;
return 0;
}
问题来了, 虽然我们产生了一个随机数, 但是无论我运...
分类:
编程语言 时间:
2014-08-13 22:27:07
阅读次数:
313
距离上一次教程又过去了将近一个多月,相信大家已经都将我上节课所说的东西所完全消化掉了。这节课就来点轻松的,说说libav的命令使用吧。注:遇到不懂的或者本文没有提到的可以用例如命令后加 --help full或者man 命令(man avconv)查看全部参数细节,或者进libav.org网站查:h...
分类:
其他好文 时间:
2014-08-13 21:39:37
阅读次数:
260
function newGuid(){ var guid = ""; for (var i = 1; i <= 32; i++){ var n = Math.floor(Math.random()*16.0).toString(16); guid += n; ...
分类:
编程语言 时间:
2014-08-13 18:24:36
阅读次数:
178
在实际项目中不仅需要随机产生密码字符串,还要一次生成多个。我把生成随机字符串的方法放到for循环中,问题出现了。生成的字符串,会重复。经过多方查证,原因在代码。//使用与系统时间相关的种子Random rnd = new Random();问题正是出现在这,系统时间会在10ms更新一次,而for循环...
分类:
Web程序 时间:
2014-08-13 18:19:26
阅读次数:
198
html中<imgclass="cimg"src="__URL__/verify?id=2>"alt=""width="50"height="22"onclick="this.src=‘__URL__/verify/‘+Math.random()"/></td>在控制器中//验证码 publicfunctionverify(){ $type=isset($_GET[‘type‘])?$_GET[‘type‘]:‘gif‘; import("@.ORG.Uti..
分类:
其他好文 时间:
2014-08-13 15:14:47
阅读次数:
272
在10g中,可以使用以下几种方法创建备库控制文件
RMAN> backup current controlfile for standby format 'c:\ctl_%U';
RMAN> backup full database format 'c:\backup\full_%U' include current controlfile for standby;
RMAN> co...
分类:
数据库 时间:
2014-08-13 13:04:16
阅读次数:
249
在无网络或网络不发达的地方,只能离线安装,以下内容是根据自己离线安装过程记录下来的,不一定对所有人适用。手动以管理员身份顺序安装sqlncli.msi、Windows6.1-KB2506143-x64.msu、dotNetFx45_Full_setup.exe、Windows6.1-KB974405...
分类:
其他好文 时间:
2014-08-13 00:48:24
阅读次数:
244
In previous post?Let‘s do our own full blown HTTP server with Netty 4?you and I were excited by creation of our own web server.?So far so good. But how good?? Given ordinary notebook? cat?/pr...
分类:
其他好文 时间:
2014-08-12 19:13:14
阅读次数:
300
assert(loadstring("math.max(7,8,9)"))dofile("scripts/xxx.lua")math.floor()math.random() math.random(10, 100)math.min(3,4,5) math.max(2,3,4)num = tonum...
分类:
其他好文 时间:
2014-08-12 18:56:54
阅读次数:
208