Oracle 11g学习笔记--伪列
2016-10-11 17:16
405 查看
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;
对于其它的用法可以查看官方文档
相关文章推荐
- Oracle 11g 学习笔记 (4)
- Oracle 11g 学习笔记
- oracle 11g 学习笔记 2012_10_24(1)
- oracle 11g 学习笔记 10_27
- oracle 11g 学习笔记 2012_10_25(2)
- oracle 11g 学习笔记 10_26
- Oracle 11g 学习笔记 (5)
- oracle 11g学习笔记 2012_10_22
- oracle 11g 学习笔记 2012_10_25(a)
- Oracle 11g 学习笔记
- Oracle 11g 学习笔记 (2)
- Oracle 11g学习笔记(5)
- Pro Oracle Database 11g Administration 学习笔记之第五章(管理控制文件和联机日志文件)
- oracle 11g 学习笔记 2012_10_25(a)
- Oracle 11g学习笔记(1)
- Oracle 11g学习笔记(3)
- Oracle 11g学习笔记(4)
- oracle 11g 学习笔记 10_26
- oracle 11g 学习笔记 2012_10_25(2)
- oracle 11g 学习笔记 2012_10_24(1)