declare @_StuNum nvarchar(50)declare @_Age int--游标处理对象是结果集中的每一条数据,可以对每一条数据进行操作declare cur_stu cursor for -- 声明游标select StuNum,Age from Students--for r...
分类:
数据库 时间:
2014-10-05 15:05:58
阅读次数:
227
--返回结果集的存储过程--1.创建一个包create package myTestPackage astype test_cursor is ref cursor;end myTestPackage;--2.创建存储过程create procedure sp_pro9( spNo in...
分类:
编程语言 时间:
2014-10-04 22:29:37
阅读次数:
226
刚開始接触android的时候,每次用数据库都会犹豫使用哪种方式,一种是getContentResolver().query(...),还有一种是managedQuery(...),后来习惯了使用前一种,后一种就被我遗忘了,可是在实际做项目时,有时数据库常常会报cursor not close的.....
分类:
其他好文 时间:
2014-10-01 11:56:20
阅读次数:
232
In linux, you can use the ncurses library to use the terminal as a text buffer: move the cursor around, and write text. It can also draw windows and o...
分类:
其他好文 时间:
2014-09-30 18:43:59
阅读次数:
154
游标(Cursor):用来查询数据库,获取记录集合(结果集)的指针,可以让开发者一次访问一行结果集,在每条结果集上作操作。oracle中显示使用游标一般要包含以下5个步骤:声明一些变量以便存储从游标返回的值。声明游标,并指定查询。打开游标。遍历游标并取得数据。关闭游标表结构及数据如下: 1 -- C...
分类:
数据库 时间:
2014-09-29 23:35:11
阅读次数:
269
//实现LoaderCallbacks<Cursor>接口用于与Loader交互publicclassCursorLoaderListFragmentimplementsLoaderManager.LoaderCallbacks<Cursor>{//首先在onCreateView或者其余的函数中调用initLoader,这样就创建了一个loader用于给fragment加载//内容,该方法会自动..
分类:
其他好文 时间:
2014-09-29 20:21:21
阅读次数:
270
之前在试用macbook模拟弱网络,写博文记录时忽然想到几个情景一A:请测试一下这个app在弱网络环境下的情况B:怎样把网速调慢?A:用macbook分享热点,然后在macbook限制速度。B:用macbook怎样分享热点?怎样限速?A:先在System Preferences -> sharing...
分类:
其他好文 时间:
2014-09-28 20:26:35
阅读次数:
179
使用dbms_xplan.display_cursor function的时候发现如下错误。SQL> select * from table(dbms_xplan.display_cursor);PLAN_TABLE_OUTPUT-----------------------------------...
分类:
其他好文 时间:
2014-09-28 20:04:15
阅读次数:
375
在测试手机app的时候,我们经常需要测试一下app在弱网络条件下是否有问题,下面一个方法是通过使用macbook 分享热点,然后通过软件限速来模拟弱网络。1. macbook通过网线上网,然后wifi分享做热点。System Preferences -> sharing,选择“internet sh...
分类:
其他好文 时间:
2014-09-28 18:43:43
阅读次数:
489
1 .car_li{display: block;float: left;padding: 10px 10px 50px 10px;background-color: #e8e8e8;cursor: pointer;}2 .car_li_cur{background-color: #436db3;}...
分类:
其他好文 时间:
2014-09-28 16:09:33
阅读次数:
140