A ROWID is an identification tag unique for each row of an Oracle Database table. The ROWID can be thought of as a virtual column, containing the ID for each row.
The oracle.sql.ROWID class is supplied as a container for ROWID SQL data type.
If you include the ROWID pseudo-column in a query, then you can retrieve the ROWIDs with the result set getString method. You can also bind a ROWID to a PreparedStatement parameter with the setString method. This enables in-place updating, as in the example that follows.
Note: Use the oracle.sql.ROWID class, only when you are
using J2SE 1.5. For JSE 6, you should use the standard
java.sql.RowId interface instead.
ResultSet rst = stmt.executeQuery("select rowid,name from friend");
...
String rowid=rst.getString(1);
...
//or
RowId rowid = rst.getRowId(1); // Get the ROWID as a String
分享到:
相关推荐
oracle rowid rownum 等组成原理
mysql虚拟了一个rowid(类似跟oracle的rowid)--SQL语句
Oracle数据库rowid深入探析.pdf
利用rowid快速在线更新海量数据 利用rowid快速在线更新海量数据
Oracle学习笔记(rownum和rowid),有具体的代码案例讲解rownum和rowid
基于Oracle RowID实现批量数据的分页下载.pdf
oracle 数据库 rowid与rownum的使用
总结一下几种查找和删除重复记录的方法,适用于有大量重复记录的情况
oracle error invalid rowid
举例介绍在oracle中rownum和rowId的不同以及使用方法
oracle_SQL中rowid与rownum的使用
oracle_SQL中ROWID与ROWNUM的使用 很有用哦
8.5.5 使用 AUTOTRACE 获得 SQL 语句 执行计划和统计数据 8.6 优化回退段 8.6.1 最小化回退段争用 8.6.2 使动态扩充最小化 8.6.3 分布回退段的 I/O 8.7 优化索引 8.7.1 怎样确定和重建产生碎片的索引 8.7.2 ...
ROWID是ORACLE中的一个重要的概念。用于定位数据库中一条记录的一个相对唯一地址值。通常情况下,该值在该行数据插入到数据库表时即被确定且唯一。ROWID它是一个伪列,它并不实际存在于表中。它是ORACLE在读取表中...
oracle_SQL中 rowid 和rownum的使用
对一个大表进行UPDATE,DELETE,如果在一个SESSION里面运行SQL,很容易引发undo不够, 或者由于一些原因,导致回滚,这个是灾难
sql学习 oracle 行定位与rowid描述.sql
rowid与rownumber的介绍 rowid rownumber