码迷,mamicode.com
首页 >  
搜索关键字:cursor    ( 2614个结果
MySQLdb插入后获得插入id
print"ID of last record is ", int(cursor.lastrowid) #最后插入行的主键IDprint"ID of inserted record is ", int(conn.insert_id()) #最新插入行的主键ID,conn.insert_id()一定要...
分类:数据库   时间:2014-05-12 13:02:44    阅读次数:394
Python Mysql
import MySQLdb# 打开数据库连接db = MySQLdb.connect("localhost","testuser","test123","TESTDB" )# 使用cursor()方法获取操作游标 cursor = db.cursor() #cursor用来执行命令的方法:
分类:数据库   时间:2014-05-10 06:03:19    阅读次数:309
oracle cursor
Oracle will generate something called cursor after it parse an statement. This thing--cursor will be stored in Library cache, if next time you need to...
分类:数据库   时间:2014-05-10 01:02:22    阅读次数:579
java.sql.SQLException: Before start of result set
错误原因: 如API中所述 API: A table of data representing a database result set, which is usually generated by executing a statement that queries the database. A ResultSet object maintains a cursor pointi...
分类:数据库   时间:2014-05-09 21:00:43    阅读次数:423
仅IE6中链接A的href为javascript协议时不能在当前页面跳转
切页面时有时用链接A来替代按钮,这样做有几个好处鼠标放上时默认有手状效果(不用添加cursor:pointer)可以添加低版本IE都支持的伪类如果点击时页面要整体刷新,即跳转,这时IE6则不尽人意,如下SinaSohuIE6中点击链接无法跳转,其它浏览器都可以。解决方法是改成锚点,SinaSohu如...
分类:编程语言   时间:2014-05-09 18:46:48    阅读次数:356
DB2中使用游标的注意事项
1.commit和rollback操作会让游标close掉,除非open的时候使用hold方式打开和使用游标2.close掉cursor之后不用freecursor,但是closeallcator之后要记得freeallocator
分类:数据库   时间:2014-05-09 14:27:04    阅读次数:348
Fix invisible cursor issue in Ubuntu 13.10
Fix invisible cursor issue in Ubuntu 13.10Fixing this problem is rather too easy. Open a terminal (Ctrl+Alt+T) and use the following command:gsettings...
分类:其他好文   时间:2014-05-09 07:57:17    阅读次数:311
PL/SQL游标
PL/SQL游标:A:分类:1:隐式游标:非用户明确声明而产生的游标. 你根本看不到cursor这个关键字.2:显示游标:用户明确通过cursor关键字来声明的游标.B:什么是隐式游标:1:什么时候产生:会在执行任何合法的SQL语句(DML---INSERT UPDATE DELETE DQL---...
分类:数据库   时间:2014-05-08 19:01:04    阅读次数:427
SqlServer中循环查询结果集
declare @id int,@value nvarchar(100);begin declare c_test_main cursor fast_forward for select hps_hpId,hps_time from hospitalPermSupp where hps_...
分类:数据库   时间:2014-05-08 14:39:27    阅读次数:498
v$open_cursor中的相同record
之前在查看v$open_cursor的时候,发现很多相同的record。 让我很疑惑, sid saddr sql_id 都相同,我就想 这不是一个cursor吗? 那为什么在open_cursor中出现多次? 后来通过别人点拨明白了,这应该是一个相同的SQL语句被 session 打开了并运行了很...
分类:其他好文   时间:2014-05-07 01:11:25    阅读次数:403
2614条   上一页 1 ... 259 260 261 262 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!