一、创建游标游标用declare语句创建。如下面的例子所示:create procedure test2()begin declare cursorTest cursor for select * from allIntersection;end;二、打开、关闭游标打开游标open...
分类:
数据库 时间:
2014-11-06 19:16:26
阅读次数:
272
这个问题虽然不是很严重,但却困扰本人许久。曾经多方询问朋友、查阅资料均无法达到效果。今日偶然查到一些东西,经实测的却可行,也算了却了一桩心愿。不再废话直接贴DEMO代码 1 unit Unit2; 2 3 interface 4 5 uses 6 Vcl.Dialogs, Vcl.Forms...
分类:
其他好文 时间:
2014-11-04 14:57:33
阅读次数:
188
安卓activity界面,上面有两个按钮,一个是开始服务,一个是取消服务。界面布局: 1 10 11 16 17 18 25 26 35 36 activity的代码: 1 package com.example.test2; 2 3 import java.util.Da...
分类:
移动开发 时间:
2014-11-02 16:07:11
阅读次数:
213
发送广播并且接受,发送两个广播
Intent intent = new Intent();
intent.setAction("com.wxq.CUSTOM_INTENT");
sendBroadcast(intent);
intent.setAction("com.wxq.test2");
sendBroadcast(intent);
接收方
@Override
p...
分类:
移动开发 时间:
2014-10-28 21:52:32
阅读次数:
202
test2();//类里面的方法互相调用要加$this } protected function test2() { echo "test2"; } }?>
分类:
Web程序 时间:
2014-10-26 22:31:59
阅读次数:
125
1、创建测试表test1及test2SQL> CREATE TABLE TEST1(ID NUMBER,NAME VARCHAR2(20));表已创建。SQL> create table test2(id number, country varchar2(10));表已创建。INSERT INTO ...
分类:
数据库 时间:
2014-10-26 18:21:23
阅读次数:
312
看了seajs官方的实例,觉得很simple.照葫芦画瓢就有了下面的。这个是在一个独立test2.js模块里,exports方法把方法暴露给调用它的接口:在html页面调用的话,代码如下:超easy有没有?
分类:
Web程序 时间:
2014-10-24 20:26:44
阅读次数:
190
synchronized:
1.多线程执行同一对象的synchronized函数,线程同步正确;
实例代码如下:
public class Test1 implements Runnable{
static Test2 action;
public static void main(String[] args) {
// TODO Auto-generated...
分类:
编程语言 时间:
2014-10-22 18:12:47
阅读次数:
237
Test test上面的代码Test是父类,TestChild1和TestChild2是子类,test1和test2分别是TestChild1和TestChild2的实例。一.带参数的prototype继承方法的问题//TestChild1.prototype = new Test(2, 3);.....
分类:
移动开发 时间:
2014-10-20 16:55:57
阅读次数:
242
public class TestCasting2{ public static void main(String args[]){ TestCasting2 test2= new TestCasting2(); Animal a = new...
分类:
编程语言 时间:
2014-10-19 16:58:34
阅读次数:
243