Oracle 11g–伪列
概念:
关于伪列官网的解释是这样子的:
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. A pseudocolumn is also similar to a function without arguments . However, functions without arguments typically return the same value for every row in the result set, whereas pseudocolumns typically return a different value for each row.
大概意思是:
一个伪列表现的像是一个列,但是它并不存储在表中。你可以从pseudocolumns中select出来,但是你不能插入,修改或者更新其值,一个伪列也像是没有参数的方法,但是没有参数的方法为结果集中的每一行一般会返回同一个值,但是伪列会为每一行返回不同的值;
清单:
■ Hierarchical Query Pseudocolumns
■ Sequence Pseudocolumns
■ Version Query Pseudocolumns
■ COLUMN_VALUE Pseudocolumn
■ OBJECT_ID Pseudocolumn
■ OBJECT_VALUE Pseudocolumn
■ ORA_ROWSCN Pseudocolumn
■ ROWID Pseudocolumn
■ ROWNUM Pseudocolumn
■ XMLDATA Pseudocolumn
常用的我觉得就是:ROWNUM ,它显示的是结果集中的行号;
select ROWID from table_name;
对于其它的用法可以查看官方文档