PHP 输出json。 $result = mysql_query($sql); //查询结果 $users=array(); $i=0; while($row=mysql_fetch_array($result,MYSQL_ASSOC)){ $users[$i]=$row; $i+...
分类:
编程语言 时间:
2014-07-07 11:12:16
阅读次数:
293
//绑定GridView每一行中的CheckBoxList protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataCon...
分类:
其他好文 时间:
2014-07-06 23:55:28
阅读次数:
362
Sql Server中暂停几秒再执行后面的命令!-- 语法WAITFOR{ DELAY 'time_to_pass' | TIME 'time_to_execute' | [ ( receive_statement ) | ( get_conversation_group_statement ) ....
分类:
数据库 时间:
2014-07-05 20:26:55
阅读次数:
215
提到 asp.net mvc 中的分页,很多是在用aspnetpager,和easyui datagrid结合的分页却不多,本文介绍的是利用easyui 中默认的分页控件,实现asp.net mvc分页。easyui datagrid分页要求数据采用的格式 :{total:2,row:[]},在as...
分类:
Web程序 时间:
2014-07-03 20:18:33
阅读次数:
533
row_number() OVER (PARTITION BY COL1 ORDER BY COL2)
--表示根据COL1分组,在分组内部根据 COL2排序,而此函数返回的值就表示每组内部排序后的顺序编号(组内连续的唯一的)
例子一: create table student (id int ,classes int ,score int);
insert into student val...
分类:
其他好文 时间:
2014-07-03 18:33:50
阅读次数:
213
1、错误描述
严重:Exception occurred during processing request:Statement Callback;SQL[ ];OALL8处于不一致状态;
nested exception is java.sql.SQLException:OALL8处于不一致状态.
java.sql.SQLException:...
分类:
数据库 时间:
2014-07-03 17:59:34
阅读次数:
245
由于项目需要用到树状列表,可以增加成员变量,于是用了第三方RATreeView开元库,头一次使用,安装github上的使用说明和Demo跑了一下,挺满意,增加成员什么的都很简单,和tableview很像是,但是在处理选择的cell时我纠结了一会,用惯了tableview的index:index.row index.section等,猛然接触到RATreeView处理时,不知道该如何办了,下面记...
分类:
其他好文 时间:
2014-07-03 13:34:23
阅读次数:
216
Problem Statement
Rabbits often feel hungry, so when they go out to eat carrots, they jump as quickly as possible.
Initially, rabbit Hanako stands at position init. From position x, she ...
分类:
其他好文 时间:
2014-07-02 17:02:04
阅读次数:
201
--mysql阅读收录-----------------2014/07/02# 复制相关:1. 解释基于语句的复制中怎样处理functions,triggers,events和auto_increment键Statement based replication with Stored Functio...
分类:
数据库 时间:
2014-07-02 15:11:08
阅读次数:
187
//螺旋输出1-25
public class Sequence {
public static void main(String[] args) {
int n = 5;
// 0:向右,1:向下,2:向左,3:向上
int direction = 0;
// 行,列
int row = 0, col = 0;
int num = 0;
int[] array = new ...
分类:
其他好文 时间:
2014-07-02 09:46:28
阅读次数:
166