先来看看我的一段代码:1 ArrayList array = new ArrayList();2 3 for(int i = 0;i<100;i++){4 array.add(i);5 } 6 for(int i=0;i<array.size();i++){7 // arra...
分类:
其他好文 时间:
2014-08-13 00:25:44
阅读次数:
278
postgresql版本:psql (9.3.4)
1、增加一列ALTER TABLE table_name ADD column_name datatype;
2、删除一列
ALTER TABLE table_name DROP column_name;...
分类:
数据库 时间:
2014-08-12 22:18:24
阅读次数:
454
找球号(二)
时间限制:1000 ms | 内存限制:65535 KB
难度:5
描述
在某一国度里流行着一种游戏。游戏规则为:现有一堆球中,每个球上都有一个整数编号i(0<=i<=100000000),编号可重复,还有一个空箱子,现在有两种动作:一种是"ADD",表示向空箱子里放m(0<m<=100)个球,另一种是"QUERY”,表示说出M(0<M<=100)个随机整...
分类:
其他好文 时间:
2014-08-12 22:17:55
阅读次数:
263
1、修改表中字段的长度,类型为varchar,从30改到50语句执行(注:当前为30):alter table 表名 alter column 列名 varchar(50)2、增加字段:alter table 表名 add 字段 varchar(50)
分类:
数据库 时间:
2014-08-12 21:49:34
阅读次数:
251
add by zhj: 下面的几篇文章也非常好,http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1http://www.raywenderlich.com/32963...
分类:
移动开发 时间:
2014-08-12 21:27:05
阅读次数:
335
MySQL 加入?列,改动列,删除列ALTER TABLE:加入?,改动,删除表的列,约束等表的定义。查看列:desc 表名;改动表名:alter table t_book rename to bbb; 加入?列:alter table 表名 add column 列名 varchar(30); 删...
分类:
数据库 时间:
2014-08-12 18:38:44
阅读次数:
241
1. http Cookies赋值: HttpCookie cookies; cookies = new HttpCookie("Fanfenghua"); cookies.Values.Add("Name", "Fanfenghua"); //添加值 cookies.Values.Add("Ag....
分类:
其他好文 时间:
2014-08-12 18:30:34
阅读次数:
243
1.后台phppublicfunctionaddtable(){ $data=$_POST; if(M('yanfa_project')->add($data)){ $this->ajaxReturn("success"); }}
分类:
Web程序 时间:
2014-08-12 18:23:54
阅读次数:
217
1. 首先确定一间配置好arm linux 交叉编译器,可以使用arm-linux-gcc.2. 看示例代码hello.c#includeint add(int a,int b){ int c = a+b; return c;}int main(){ printf("Ubuntu, i am lin...
分类:
其他好文 时间:
2014-08-12 18:15:34
阅读次数:
306
如果要查看存储过程或者函数的执行过程,可以用debug的模式。PLSQL Developer提供了debug功能,以函数为例:1. 找到你要debug的函数,然后右击—>选择“Add debug information”,如图:2. 右击函数->选择Test,进入debug模式的窗口。如图:3.在T...
分类:
数据库 时间:
2014-08-12 17:02:14
阅读次数:
244