oracle中的伪列有哪些、rowid等

为什么rowid都是空

测试语句如下:

select rowid from dual; 

发现无结果。这是为什么呢?
是因为使用的工具不支持这个字段,加个列别名即可。

修正后的语句如下:

select rowid as rowid_p from dual;

果然有结果了。

伪列(pseudocolumns)有哪些

CURRVAL, LEVEL, NEXTVAL, ROWID, and ROWNUM.

猜你喜欢

转载自blog.csdn.net/enthan809882/article/details/114137472