码迷,mamicode.com
首页 >  
搜索关键字:cursor    ( 2614个结果
python sqlite1
#-*- coding:UTF-8 -*-# 导入SQLite驱动:import sqlite3# 连接到SQLite数据库# 数据库文件是test.db# 如果文件不存在,会自动在当前目录创建:conn = sqlite3.connect('test.db')# 创建一个Cursor:cursor...
分类:数据库   时间:2014-07-16 19:59:59    阅读次数:220
BIND_MISMATCH导致过多VERSION COUNT的问题
并不是用了绑定变量就一定都会游标共享,下面我们介绍的就是一种例子。BIND_MISMATCH导致VERSION COUNT过多的原因解释:This is due to the bind buffer mismatch of the current child cursor. If oracle is...
分类:其他好文   时间:2014-07-16 18:16:45    阅读次数:295
library cache lock和cursor: pin S wait on X等待
1.现象:客户10.2.0.4 RAC环境,出现大量的library cache lock和cursor: pin S wait on X等待,经分析是由于统计信息收集僵死导致的。数据库在8点到9点期间,数据库两个节点都存在明显的cursor: pin S wait on X和library c.....
分类:其他好文   时间:2014-07-14 23:51:12    阅读次数:577
ContentObserver和DataSetObserver区别
ContentObserver和DataSetObserver区别ContentObserver是一个提前通知,这时候只是通知cursor说,我的内容变化了。DataSetObserver是一个后置通知,只有通过requery() deactivate() close()方法的调用才能获得这个通知。...
分类:其他好文   时间:2014-07-14 19:14:06    阅读次数:229
分组PARTITION BY及游标CURSOR的用法
基础数据表:select * from dbo.RecommendationChanelVersionRelation;数据如下:要求按照ChannelVersionID分组,对每组中的OrderId根据ID由小到大的顺序,更新为1,2,3,4,5...方法一(分组PARTITION BY):IF ...
分类:其他好文   时间:2014-07-13 11:30:35    阅读次数:226
oracle 游标使用(显式游标)
1. Set Serveroutput on; declare Cursor tem_cursor is select * from xuesheng xs; v_row tem_cursor%rowtype;begin open tem_...
分类:数据库   时间:2014-07-13 00:35:28    阅读次数:195
Apidemos-->Views-Lists-Cursor(people)学习
Apidemos-->Views-Lists-Cursor(people)-主要用到了获取手机联系人信息,属于内容提供者的范畴,要想了解这方面的内容,可以参考官方docs /sdk/docs/guide/topics/providers/content-provider-basics.html 这里简单说下contentprovider; contentprovi...
分类:Windows程序   时间:2014-07-12 20:33:53    阅读次数:404
sql server快速删除整个数据库表和存储过程
情况:在远程数据库删除表执行太慢,表过多,数据库无权删除结果:保留空数据库方法:利用sql语句,查询网络文摘解决.说明:有些有约束,不能直接delete,需要先删除所有约束,语句:DECLARE c1 cursor for select 'alter table ['+ object_name...
分类:数据库   时间:2014-07-12 15:23:17    阅读次数:231
游标使用实例-入门级
例子table1结构如下id intname varchar(50)declare @id intdeclare @name varchar(50)declare cursor1 cursor for --定义游标cursor1select * from table1 ...
分类:其他好文   时间:2014-07-11 12:57:38    阅读次数:214
python MySQLdb 常用操作
我采用的是MySQLdb操作的MYSQL数据库。先来一个简单的例子吧:importMySQLdb try: conn=MySQLdb.connect(host=‘localhost‘,user=‘root‘,passwd=‘root‘,db=‘test‘,port=3306) cur=conn.cursor() cur.execute(‘select*fromuser‘) cur.close() conn.close() exceptMySQLdb.Error,e..
分类:数据库   时间:2014-07-10 18:20:40    阅读次数:282
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!