0){ echo "操作成功!"; }else{ echo "没有受影响的行数"; }//5.接受返回的结果,并进行处理返回值是bool,并且不需要处理//6.关闭连接,释放资源由于$res是个布尔值,所以也不需要释放资源。 mysql_free_result($res); 下面...
分类:
数据库 时间:
2014-08-07 22:47:45
阅读次数:
347
在html页面head标签之间添加以下标识可以避免大多数浏览器缓存: <meta?http-equiv="Pragma"?content="no-cache"?/>???
<meta?http-equiv="Cache-Control"?content="no-cache"?/>
<meta?http-equiv="E...
分类:
Web程序 时间:
2014-08-07 19:28:10
阅读次数:
249
缓存是:当第一次查询时,会将已查询到的数据保存在缓存区,当再次查询符合条件的内容时,会首先从缓存中查找,如果找不到,在从数据库中加载。
本例中Department类、Employee类、SessionFactoryTools类与4中的相同。
Department.hbm.xml文件配置:
<!-- 指定当前类要使用二级缓存 ,但不主张使用该方法,
主张在主配置文件中设...
分类:
系统相关 时间:
2014-08-07 13:08:20
阅读次数:
290
Download AnacondaAnaconda is a completely free Python distribution (including for commercial use and redistribution). It includes over 195 of the most...
分类:
编程语言 时间:
2014-08-07 12:54:29
阅读次数:
241
一台老的PHP后台服务器,今天用 free -m 查看,发现内存跑满了。再 top,然后按下shift+m,也就是按内存占用百分比排序,发现排在第一的进程,才占用0.9%,那是什么占用的呢?谷歌了一下,据说是centos 为了提高效率,把部分使用过的文件缓存到了内存里。如果是这样的话,我又不需要这样...
分类:
其他好文 时间:
2014-08-07 12:43:39
阅读次数:
331
Exponential smoothingFrom Wikipedia, the free encyclopedia Exponential smoothingis a technique that can be applied totime seriesdata, either to produ....
分类:
其他好文 时间:
2014-08-07 12:14:00
阅读次数:
249
用户有一个需要用txt更新表数据的功能,用lookup实现,步骤:循环文件夹的txt文件用Lookup全部cache目标表数据,比对txt数据和目标表数据3.如果有match的数据用txt更新目标表但是执行每次Match的数据都是0,而txt中确实存在匹配的数据。翻了一下微软的BOL,有一句话很重要:Ifth..
分类:
其他好文 时间:
2014-08-07 07:36:30
阅读次数:
254
RHEL6.5---查看服务器的内存:[root@linuxcast/]#free-mtotalusedfreesharedbufferscachedMem:1870179476062862-/+buffers/cache:8681001Swap:409504095---查看服务器cpu信息[root@linuxcast/]#lscpuArchitecture:x86_64CPUop-mode(s):32-bit,64-bitByteOrder:LittleEndianCPU(..
分类:
Web程序 时间:
2014-08-07 07:31:30
阅读次数:
263
In one embodiment, the present invention includes a directory to aid in maintaining control of a cache coherency protocol. The directory can be couple...
分类:
数据库 时间:
2014-08-07 00:42:27
阅读次数:
496
基于缓存的存储器层次结构
通用高速缓存存储器结构
高速缓存的映射
Core i7的高速缓存特性
几种cache方式
分类:
其他好文 时间:
2014-08-07 00:33:57
阅读次数:
337