oracle 的rowid是啥意思

nake 2004-07-12 01:17:03
oracle 的rowid是啥意思
...全文
991 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
wwh207 2004-07-19
  • 打赏
  • 举报
回复
oracle数据库中美一条记录的唯一标识。
magicnbh 2004-07-16
  • 打赏
  • 举报
回复
说的不错,不过那么多英文看得头都大了
smallcrocodile 2004-07-16
  • 打赏
  • 举报
回复
数据库给每一列的唯一编号
yown 2004-07-14
  • 打赏
  • 举报
回复
rowid是一个伪列,对应 块号,行号,行的序号..
wylwyl1130 2004-07-14
  • 打赏
  • 举报
回复
rowidtochar()
xqg1130 2004-07-14
  • 打赏
  • 举报
回复
學習,順便幫樓主頂一下
wolfAone 2004-07-14
  • 打赏
  • 举报
回复
伪列:
伪列如同数据表的列,但它实际上不存储在表中
你可以从这些伪列中提取值
但你不能将值插入、更新或者删除它们
以下描述了这些伪列:
wolfAone 2004-07-14
  • 打赏
  • 举报
回复
Pseudocolumns

A pseudocolumn behaves like a table column, but is not actually
stored in the table. You can select from pseudocolumns, but you
cannot insert, update, or delete their values. This section
describes these pseudocolumns:

* CURRVAL
* NEXTVAL
* LEVEL
* ROWID
* ROWNUM

wolfAone 2004-07-14
  • 打赏
  • 举报
回复
ROWID

For each row in the database, the ROWID pseudocolumn returns a row's
address. ROWID values contain information necessary to locate a
row:

* which data block in the data file
* which row in the data block (first row is 0)
* which data file (first file is 1)

In most cases, a ROWID value uniquely identifies a row in the
database. However, rows in different tables that are stored

together in the same cluster can have the same ROWID.

Values of the ROWID pseudocolumn have the datatype ROWID.

ROWID values have several important uses:

* They are the fastest means of accessing a single row.
* They can show you how a table's rows are stored.
* They are unique identifiers for rows in a table.

A ROWID does not change during the lifetime of its row. However,

you should not use ROWID as a table's primary key. If you delete
and reinsert a row with the Import and Export utilities, for
example, its ROWID may change. If you delete a row, Oracle may
reassign its ROWID to a new row inserted later.

Although you can use the ROWID pseudocolumn in the SELECT and WHERE
clauses of a query, these pseudocolumn values are not actually
stored in the database. You cannot insert, update, or delete a

value of the ROWID pseudocolumn.

EXAMPLE:

This statement selects the address of all rows that contain data for
employees in department 20:

SELECT ROWID, ename
FROM emp
WHERE deptno = 20

ROWID ENAME
----------------- ----------
0000000F.0000.0002 SMITH
0000000F.0003.0002 JONES
0000000F.0007.0002 SCOTT

0000000F.000A.0002 ADAMS
0000000F.000C.0002 FORD

ern 2004-07-13
  • 打赏
  • 举报
回复
行的实际地址,包括了块信息等
dinya2003 2004-07-13
  • 打赏
  • 举报
回复
rowid就象是邮递员送信时要找的信封上的家庭地址一样,每个rowid都不会重复,oracle查找通过它可以更快地查找到数据.
wylwyl1130 2004-07-12
  • 打赏
  • 举报
回复
Internally, every database table has a ROWID pseudocolumn, which stores binary values called rowids. Each rowid represents the storage address of a row. A physical rowid identifies a row in an ordinary table. A logical rowid identifies a row in an index-organized table. The ROWID datatype can store only physical rowids. However, the UROWID (universal rowid) datatype can store physical, logical, or foreign (non-Oracle) rowids.

freddy2003 2004-07-12
  • 打赏
  • 举报
回复
唯一标识一行记录
select rowid,* from 表名
试一下,你就明白了
bzszp 2004-07-12
  • 打赏
  • 举报
回复
每条记录的物理地址,
对数据库中记录行的作快检索方式就是使用rowid来进行查找。
LGQDUCKY 2004-07-12
  • 打赏
  • 举报
回复
rowid是数据库的一个伪列,建立表的时候数据库会自动为每个表建立ROWID列
用来唯一标识一行记录。
rowid是存储每条记录的实际物理地址,对记录的访问是基于ROWID。

3,491

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧