当同一个SQL多次查询(执行)时,只是每次的查询条件(数据)不一样,那么,使用prepare就对了.它可大大减少查询(执行)时间,服务器资源消耗..原型:PDOStatementPDO::prepare(stringquery[,arraydriver_options])占位符:1,有名占位符(:namedparameters)2,问号占位符(?)如:INSERTINTOpro..
分类:
Web程序 时间:
2015-07-15 13:28:22
阅读次数:
136
在Run -> Edit Configuration -> 你的运行Server -> Startup/Connection -> Environment Variables 添加如下参数Name: JAVA_TOOL_OPTIONS, Value: -Dfile.encoding=UTF-8
分类:
其他好文 时间:
2015-07-15 13:08:43
阅读次数:
548
日志中报错如下:java.lang.NoClassFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment 解决办法:启动脚本中JAVA_OPTIONS变量后加入-Djava.awt.headless=true参数
分类:
Web程序 时间:
2015-07-15 13:00:55
阅读次数:
139
Easyui Tab刷新:function refreshTab(title){ var tab = $('#id').tab('getTab',title); $('#id').tab('update',{ tab : tab, options : tab....
分类:
其他好文 时间:
2015-07-14 22:12:17
阅读次数:
114
cp?? [root@linux ~]# cp [-adfilprsu] 来源档(source) 目的檔(destination) ? ? [root@linux ~]# cp [options] source1 source2 source3 …. directory ? ? 参数: ? ? -a :相当于 -pdr 的意思; ? ?...
分类:
系统相关 时间:
2015-07-14 18:27:26
阅读次数:
136
Refusedtodisplay'http://www.***.com/login/doLogin.html'inaframebecauseitset'X-Frame-Options'to'SAMEORIGIN'.触发原因:页面的返回头被设置X-Frame-Options SAMEORIGIN ,只...
分类:
其他好文 时间:
2015-07-14 17:31:43
阅读次数:
175
一、awk基本用法awk[options]‘scripts‘file1,file2...awk[options]‘pattern{action}‘file1,file2...#-F选项指定分隔符,$num,代表第num个字段
[root@docker1~]#awk-F:‘{print$1,$3}‘/tmp/passwd
root0
bin1
daemon2
adm3
......
#匹配正则表达式用:/正则表达式/,匹配以r开头..
分类:
其他好文 时间:
2015-07-14 06:26:21
阅读次数:
120
1压缩gzip命令options:-c数据流重定向,可以定位为文件-r递归压缩,即深入子目录-v显示姓名和压缩比等冗余信息-d解压缩-#加上的数字表示压缩等级,越高表示压缩比越高,但更慢①做了一个很简单的实验[root@mailtmp]#ll-h
total128K
-rw-r--r--.1rootroot128KJun2703:00test
[ro..
分类:
系统相关 时间:
2015-07-14 06:21:14
阅读次数:
178
1.首先我们直接上代码介绍:// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { ...
分类:
移动开发 时间:
2015-07-13 22:22:55
阅读次数:
222
How do I start, restart, or stop Apache 2.x web server on Ubuntu Linux operating systems using command line options?You can use any one of the followi...
分类:
Web程序 时间:
2015-07-13 22:17:05
阅读次数:
227