生成随机数;pid三位的含义;map数据结构的优势;receive的妙用;begin end真好用;ets的创建个数限制带来的暗示
分类:
其他好文 时间:
2014-08-14 01:12:20
阅读次数:
345
先来看一个概念: 数据库事务(Database Transaction) ,是指作为单个逻辑工作单元执行的一系列操作,要么完整地执行,要么完全地不执行。那么在存储过程里添加事务,则可以保证该事务里的所有sql代码要么完全执行要么完全不执行。 举个简单的带事务的存储过程: Begin ...
分类:
数据库 时间:
2014-08-13 21:35:37
阅读次数:
224
实验环境中修改后的crushmap如下: # begin crush map
tunable choose_local_tries 0
tunable choose_local_fallback_tries 0
tunable choose_total_tries 50
tunable chooseleaf_descend_once 1
# devices
devi...
分类:
其他好文 时间:
2014-08-13 19:37:57
阅读次数:
324
program main;{$APPTYPE CONSOLE}{$R *.res}uses System.SysUtils, OtlParallel;begin Parallel.Async(procedure var i: Integer; begin for I := 0 to...
分类:
其他好文 时间:
2014-08-13 18:09:46
阅读次数:
292
uses SysUtilsfunction GetFileDateTime(FileName: string): TDateTime;var intFileAge: LongInt;begin intFileAge := FileAge(FileName); if intFileAge = -1 ....
分类:
其他好文 时间:
2014-08-13 18:07:26
阅读次数:
139
DECLARE
CURSORc1isselecttable_namefromuser_tables;
V_TABLE_NAMEuser_tables.TABLE_NAME%TYPE;
V_CNTnumber;
V_SQLvarchar2(2000);
BEGIN
FORV_TABLE_NAMEinc1loop
V_SQL:=‘selectcount(1)from‘||V_TABLE_NAME.table_name;
executeimmediateV_SQLintoV_CNT;
dbms_o..
分类:
数据库 时间:
2014-08-13 15:21:36
阅读次数:
347
1、首先必须了解,string可以被看成是以字符为元素的一种容器。字符构成序列(字符串)。有时候在字符序列中进行遍历,标准的string类提供了STL容器接口。具有一些成员函数比如begin()、end(),迭代器可以根据他们进行定位。注意,与char*不同的是,string不一定以NULL('\0...
分类:
其他好文 时间:
2014-08-13 14:53:46
阅读次数:
223
FMicrophone := TCaptureDeviceManager.Current.DefaultAudioCaptureDevice; if Assigned(FMicrophone) then begin FMicrophone.FileName := udpclients.tempsa....
分类:
其他好文 时间:
2014-08-13 14:47:06
阅读次数:
227
create procedure proc_pay(@maxmoney int,@minmoney int,@paymonth nvarchar(20))as begin select 储值方式,sum(台币) from 储值分析 where uid in (select uid from 储值分析...
分类:
其他好文 时间:
2014-08-13 14:21:26
阅读次数:
140
//注意引用:vcl.themes, vcl.styles, IOutilsprocedure TForm1.FormCreate(Sender: TObject);var stylename: string;begin TStyleManager.LoadFromFile('F:\My\Sty.....
分类:
其他好文 时间:
2014-08-13 10:26:55
阅读次数:
218