码迷,mamicode.com
首页 >  
搜索关键字:cursor sharing    ( 3039个结果
innerHTML应用--自动生成一个V字形(高级版)
一、效果图按钮可以多次点击。二、HTML+CSS代码。<style>.box{width:800px;margin:90pxauto;}.btn{padding:5px10px;color:#fff;background:#ff6600;cursor:pointer;font-size:16px;border-radius:5px;}.list{position:relative;margin-top:20px;}.listli{width:48px;heig..
分类:Web程序   时间:2014-10-21 19:58:42    阅读次数:823
DOM操作--自动生成100个li(变色版)
一、效果图。二、HTML+CSS代码。<style>.box{width:800px;margin:90pxauto;}.btn{padding:5px10px;color:#fff;background:#ff6600;cursor:pointer;font-size:16px;border-radius:5px;}.list{position:relative;margin-top:20px;}.listli{width:50px;height:50px;position..
分类:其他好文   时间:2014-10-21 19:58:22    阅读次数:258
对只转发结果集的无效操作:last
调用时候发生这样一个错误:SQLException:对只转发结果集的无效操作:last原因是按照缺省方式打开的ResultSet不支持结果集cursor的回滚如果想要完成上述操作,要在生成Statement对象时加入如下两个参数:ResultSet.TYPE_SCROLL_INSENSITIVE, ...
分类:其他好文   时间:2014-10-21 19:29:44    阅读次数:174
用 managedQuery() 时须要注意的一个陷阱
Activity里面提供了一个managedQuery()方法,依照AndroidSDK里面的说明,“the activity will manage its lifecycle for you.”听起来非常好,Activity能够替你管理Cursor的生命周期了,就不用记着去close()了,代码...
分类:其他好文   时间:2014-10-21 16:57:07    阅读次数:201
动态Ref Cursor的定义与调用
1.定义: type ref_cur is ref cursor; 2.动态cursor作为out参数 存储过程的实现 举个最简单的例子,根据table name动态获取cursor PROCEDURE P_GET_CUR(I_TABLE_NAME IN VARCHAR2, O_REF_CUR OUT REF_CUR) AS   BEGIN     IF UPPER(I_TABLE_N...
分类:其他好文   时间:2014-10-21 13:52:48    阅读次数:196
SQLServer在多个表中都增加一个字段的方法
1、使用游标declare @sql varchar(200), @name varchar(40)declare my_cursor scroll cursor for select name from sysobjects where type = 'u' and name like 'j...
分类:数据库   时间:2014-10-21 13:43:42    阅读次数:209
PLSQL中显示Cursor、隐示Cursor、动态Ref Cursor区别
一、显式cursor 显式是相对与隐式cursor而言的,就是有一个明确的声明的cursor。显式游标的声明类似如下(详细的语法参加plsql ref doc ): cursor cursor_name (parameter list) is select ... 游标从declare、open、fetch、close是一个完整的生命旅程。当然了一个这样的游标是可以被多次open...
分类:数据库   时间:2014-10-21 12:16:47    阅读次数:305
还原数据库出现“未获得排他访问”解决方法(杀死数据库连接的存储过程sqlserver)
在master数据库下创建存储过程如下: createproc killspid (@dbnamevarchar(20)) as begin declare@sqlnvarchar(500) declare@spidint set@sql='declare getspid cursor for select spid from sysprocesses where dbid i...
分类:数据库   时间:2014-10-20 23:27:07    阅读次数:355
Android服务器端如何遍历MySql查询结果
============问题描述============ 如题,想做一个类似于微信朋友圈或者新浪微博的发状态功能。用户进入后显示所有人发的状态,可是在服务器端该怎么写遍历Sql呢?用Cursor遍历的话,Servlet该怎么写?请前辈指教~感激不尽。 ...
分类:移动开发   时间:2014-10-20 23:08:49    阅读次数:254
innerHTML应用--自动生成一个V字形
一、效果图。二、HTML+CSS代码。<style>.box{width:800px;margin:90pxauto;}.btn{padding:5px10px;color:#fff;background:#ff6600;cursor:pointer;font-size:16px;border-radius:5px;}.list{position:relative;margin-top:20px;}.listli{width:50px;height:50px;position..
分类:Web程序   时间:2014-10-20 17:34:33    阅读次数:311
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!