文章來源:http://blog.chinaunix.net/uid-9370128-id-1687475.html同一IDC ,IDC内部有DNS服务器,对各服务器的IP做了反向解析,但未对内网IP做反向解析,所以使用skip-name-resolve以后用内网地址向mysqlslap请求响应快了... Read More
posted @ 2014-05-30 14:46 Convert Views(1709) Comments(0) Diggs(0)
转自上帝的鱼--专栏 cdsn个人收藏:Delphi 控制Excel(一) 使用动态创建的方法首先创建 Excel 对象,使用ComObj:var ExcelApp: Variant;ExcelApp := CreateOleObject( 'Excel.Application' );1) 显示当前... Read More
posted @ 2014-05-30 14:41 Convert Views(378) Comments(0) Diggs(0)
SQL Server T-SQL高级查询高级查询在数据库中用得是最频繁的,也是应用最广泛的。Ø 基本常用查询--selectselect * from student; --all 查询所有select all sex from student; --distinct 过滤重复select distinct sex from student; --count 统计select count(*) from student;select count(sex) from student;select count(distinct sex) from student; --top 取前N条记 Read More
posted @ 2013-12-31 11:29 Convert Views(202) Comments(0) Diggs(0)
一、使用步骤:A)、将CheckMem.pas单元加入到工程中B)、修改工程文件,将'CheckMem.pas'放到uses下的第一句program Project1;usesCheckMem in 'CheckMem.pas',Forms,Unit1 in 'Unit1.pas' {Form1} ;//其他单元文件{$R *.RES}beginApplication.Initialize;Application.CreateForm(TForm1, Form1);Application.Run;end.C)、正常的编译、运行应用程序D)、退出应 Read More
posted @ 2013-08-27 15:18 Convert Views(412) Comments(1) Diggs(0)
uses StrUtils;【字符串函数大全】首部 function AnsiResemblesText(const AText, AOther: string): Boolean;$[StrUtils.pas功能 返回两个字符串是否相似说明 ANSI(American National Standards Institute)美国国家标准协会;不区分大小写参考 function StrUtils.SoundexProc; var StrUtils.AnsiResemblesProc例子 CheckBox1.Checked := AnsiResemblesText(Edit1.Text, Ed Read More
posted @ 2013-06-01 14:47 Convert Views(610) Comments(0) Diggs(0)
delphi的构造函数的定义是:constructor create;delphi的析构函数的定义是:destructor destroy;析构函数是不能重载的,但是构造函数是可以重载的。构造函数在重载的时候要在后面加“overload”,例如:constructor create;overload;constructor create(i:integer);overload;注意,只有两个构造函数以上才叫重载,只有一个就不用“overload;”了。默认的构造函数是:constructor create; 如果有重载的话,那么默认的构造函数后面也要加overload,正象上面的例子一样。de Read More
posted @ 2013-05-27 18:26 Convert Views(5573) Comments(0) Diggs(0)
程序里放上了这个之后Delphi在编译时就会自动使用Xp里面最新的共用控见,那样的话你的程序就支持Xp主题了,当然,这个只在Xp下有效,因为Xp以外的Windows没有支持Xp特效的共用控见。TXPManifest源代码中最重要的那句是: {$WEAKPACKAGEUNIT ON} 和 {$R WindowsXP.res} 前面那句是告诉编译器使用Xp的共用控见,后面那句指令编译器包含支持Xp特效必要的资源,如果你在你自己的代码中加入上面两句,就算不添加TXPManifest你的程序依然支持Xp特效(在Xp下)。 Read More
posted @ 2013-05-08 16:44 Convert Views(873) Comments(0) Diggs(0)
先來一份随笔! Read More
posted @ 2013-05-08 12:45 Convert Views(100) Comments(0) Diggs(0)