/**example**/
set serveroutput on; --将输出server打开
show serveroutput;
set verify off;
show verify;
--调取数据库中的值
declare
emp_first_name varchar2(30);
emp_last_name varchar2(30);
emp_phone varchar2...
分类:
数据库 时间:
2014-11-27 16:29:18
阅读次数:
204
declare cursor c_t is select table_name from user_tables;table_name user_tables.table_name%type;begin open c_t;loop fetch c_t into table_name;exit whe...
分类:
数据库 时间:
2014-11-27 10:21:51
阅读次数:
193
DECLARE @SQLSTR VARCHAR(1000);DECLARE My_Cursor CURSOR --定义游标 FOR (select 'ALTER TABLE '+o.name+' drop CONSTRAINT '+fk.name+';' AS Command from ...
分类:
数据库 时间:
2014-11-26 13:37:59
阅读次数:
182
SQLite游标(Cursor)错误本文地址: http://blog.csdn.net/caroline_wendy错误:android.database.CursorIndexOutOfBoundsException:Index -1 requested, with a size of 1游标(cursor)的起始位置是-1,不能直接使用。需要cursor.moveToFirst()或curs...
分类:
移动开发 时间:
2014-11-26 11:31:30
阅读次数:
164
最早的managedQuery ( , , , ,);过时了,现在获取联系人列表的方法是contentResolver.Query() public final Cursor query (Uri uri, String[] projection, String selection, String[] selectionArgs, String sor...
分类:
其他好文 时间:
2014-11-25 23:53:25
阅读次数:
292
DECLARE
CURSOR cur_h IS
SELECT h.*
FROM ar_customers h
WHERE h.customer_name /*'—XD';*/
LIKE '%—XD';
p_customer_rec cux_ar_cust_accounts_v%ROWTYPE;
l_retu...
分类:
其他好文 时间:
2014-11-25 23:34:15
阅读次数:
291
迭代器(Iterator)模式,又叫做游标(Cursor)模式。GOF给出的定义为:提供一种方法访问一个容器(container)对象中各个元素,而又不需暴露该对象的内部细节。从定义可见,迭代器模式是为容器而生。很明显,对容器对象的访问必然涉及到遍历算法。你可以一股脑的将遍历方法塞..
分类:
编程语言 时间:
2014-11-25 19:00:02
阅读次数:
180
http://tedlab.mit.edu/~dr/gdbintro.htmlhttp://emacser.com/emacs-gdb.htmCxd: 打开目录C-x spaceIf you type this sequence while your cursor is in your source...
分类:
数据库 时间:
2014-11-24 16:41:06
阅读次数:
256
package com.example.yqqmobilesafe.ContactProvider;
import java.util.ArrayList;
import java.util.List;
import android.R.integer;
import android.content.Context;
import android.database.Cursor;
impor...
分类:
移动开发 时间:
2014-11-24 12:01:57
阅读次数:
177