新项目启动想使用存储过程返回结果集,上家公司经常写,这才几年就忘的差不多了,费了老大劲才搞好。留个印,以备后续查看。。。oracle 返回结果集 需要使用到包(package),结果集是作为游标类型(CURSOR)返回. 且返回的结果集不能在pl/sql中利用exec 存储过程名() 看到结果集(模...
分类:
数据库 时间:
2014-09-18 11:23:23
阅读次数:
364
问题:java.lang.IllegalStateException:Process10789exceededcursorquota100,willkillit解决方法:Cursorquery=db.query(LwSQLiteOpenHelper.TABLE_NAME,null,LwSQLiteOpenHelper.ACCOUNT+"=?",query.close();查询完数据库记得关闭对应的游标否则会报上面的错误
分类:
数据库 时间:
2014-09-18 09:52:34
阅读次数:
215
//By smells2 at Lab 2012-02-21#include #include #include #include #include #include #include #include #include #include int main(){ osg::ref_ptr root ...
分类:
其他好文 时间:
2014-09-17 18:30:52
阅读次数:
1878
## CRUD create,read, update,delete ## Operations db.collection.count() db.collection.distinct() db.collection.findOne() db.collection.remove() db.collection.save() db.collection.update() ##Cursor...
分类:
其他好文 时间:
2014-09-17 15:40:22
阅读次数:
155
还记得Web 1.0时代的那些苦逼岁月吗? 你想尽一切办法来优化你的网站. 还要饱受IE6惨无人道的虐待,举个栗子, IE中那些害死人不偿命的滚动条, 我一直记得第三方类库 CometCursor. CometCursor非常强悍,主要用来创建和加载自定义鼠标光标样式。现在可能你会觉得当初的那些实现手段特别老土,但有时又确实需要定制一下光标图案,那么一起来看看CSS怎么实现吧, It's So Easy, 哪里不会点哪里!...
分类:
Web程序 时间:
2014-09-17 12:11:12
阅读次数:
276
package cn.jbit.util;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.lang.ref...
分类:
其他好文 时间:
2014-09-16 17:24:51
阅读次数:
188
MySQL存储过程不可以定义动态的游标(cursor),但是可以使用变量。open -> fetch...into -> close。 ????1、声明一个游标: --?define?userId
DECLARE?userId?nvarchar(50)?default?0;
--?d...
分类:
数据库 时间:
2014-09-16 10:59:00
阅读次数:
203
总共介绍两种游标一种高效使用游标cursor 、sys_refcursor、 bulk collect 1、cursor游标使用 [sql] view plain copy print ? /*简单cursor游标 *students表里面有name字段,你可以换做其他表测试 */ --定义 decl...
分类:
数据库 时间:
2014-09-15 19:57:19
阅读次数:
323
游标使用的整个过程: 1.创建游标 DECLARE calc_bonus CURSOR FOR SELECT id, salary, commission FROM employees; 2.打开游标 OPEN calc_bonus; 3.使用游标 FETCH calc_bonus INTO re_id, re_salary, re_comm; 4...
分类:
其他好文 时间:
2014-09-15 06:39:38
阅读次数:
239