用PreparedStatement 一般来说比Statement 性能高:一个sql 发给服务器去执行,涉及步骤:语法检查、语义分析, 编译,缓存“inert into user values(1,1,1)”-二进制“inert into user values(2,2,2)”-二进制“i...
分类:
数据库 时间:
2014-07-09 22:53:27
阅读次数:
361
前两篇博客发出去之后,想了想,仍然有我的网站、我的档案这两个链接没有发生变化。说明它们没有在Welcome.ascx页面中引用。那它们究竟是怎么出现在Personal Actions 个人操作中呢?如何隐藏掉,或者删除呢?...
分类:
Web程序 时间:
2014-07-09 13:09:28
阅读次数:
250
最近有个需求是隐藏个人操作Personal Action的部分内容(右上角下拉菜单),研究了一下需要更改Welcome.ascx文件。...
分类:
其他好文 时间:
2014-07-09 09:24:52
阅读次数:
262
在批量更新SQL操作的时候建议使用addBatch,这样效率是高些,数据量越大越能体现出来Statement接口里有两个方法:void addBatch(String sql)将给定的 SQL 命令添加到此 Statement 对象的当前命令列表中。通过调用方法 executeBatch 可以批量执...
分类:
数据库 时间:
2014-07-09 00:01:51
阅读次数:
291
In Ruby language, the return statement in the Ruby functions are interesting, Let's explore them as below:...
分类:
其他好文 时间:
2014-07-08 17:19:12
阅读次数:
177
主要关注红色标记语句即可。
The include (or require) statement takes all the text/code/markup that exists in the specified file and copies it into the file that uses the include statement.
Including files is ...
分类:
Web程序 时间:
2014-07-08 12:53:30
阅读次数:
213
//ODBC连接Excelpublic static void main(String[] args) {Connection conn = null;Statement stm = null;ResultSet rs = null;try {//加载ODBC驱动Class.forName("sun...
分类:
数据库 时间:
2014-07-06 16:51:33
阅读次数:
234
运维的时候,经常遇到auto_increment的疑惑:机器异常crash,重启后id回退的问题性能考虑,每次获取肯定不会持久化,内存中取值,statement复制如何保证主备一致id的取值受binlog的保护吗1. auto_increment相关的参数控制 1.1 innodb_autoinc_...
分类:
数据库 时间:
2014-07-06 16:32:46
阅读次数:
315
PHP控制语句
1、IF语句
IF语句是多数语言中的一个重要特点,它根据条件执行程序段。PHP的IF语句类似于 C:
if (expr)
statement
正如在表达式中所论述, expr 被计算为它的真值。如果 expr 为TRUE, PHP执行相应语句, 如果为FALSE 则忽略它。
如果$a 大于 $b,下例将显示 ’a is bigger than...
分类:
Web程序 时间:
2014-07-06 11:12:39
阅读次数:
315
Sql Server中暂停几秒再执行后面的命令!-- 语法WAITFOR{ DELAY 'time_to_pass' | TIME 'time_to_execute' | [ ( receive_statement ) | ( get_conversation_group_statement ) ....
分类:
数据库 时间:
2014-07-05 20:26:55
阅读次数:
215