Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-07-09 23:00:38
阅读次数:
208
用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
//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
QAbstractItemModelQAbstractItemModel是一个抽象类,该抽象类未实现的纯虚方法有QModelIndex QAbstractItemModel::index(int row, int column, const QModelIndex & parent = QModel...
分类:
其他好文 时间:
2014-07-06 13:26:45
阅读次数:
228
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
call_user_func ( callback $function [, mixed $parameter [, mixed $... ]]
)
调用第一个参数所提供的用户自定义的函数。
返回值:返回调用函数的结果,或FALSE。
example :
Php代码
function eat($fruit) //参数可以为多个
{...
分类:
Web程序 时间:
2014-07-06 09:11:06
阅读次数:
246
var col:int = 6;var row:int = 4;var len:int = col*row;for(var i:int = 0;i<len;i++){ var item:Item = new Item(); item.x = item.width*(i%col); item....
分类:
其他好文 时间:
2014-07-05 21:20:25
阅读次数:
136
在阅读本文之前,我获取gridview某行某列的值一般做法是这样的:row.Cells[3].Text.ToString()。有点傻瓜呵呵在Asp.net 2.0中增加了一个新的数据绑定控件:GridView,其目的用来取代Asp.net1.x中的DataGrid控件。获取GridView中的某列值...
分类:
Web程序 时间:
2014-07-05 16:58:05
阅读次数:
272
Linux下还原数据库代码:
1,创建一个空的数据库cddl
mysql> create database cddl;
Query OK, 1 row affected (0.00 sec)
2,还原数据库
[root@chicago mysqlsoftware]# cd /etc/rc.d/init.d
[root@chicago mysqlsoftware]# cd /etc/rc...
分类:
数据库 时间:
2014-07-04 08:58:17
阅读次数:
301