|
|
FULL A - Z Oracle Function Library (formerly named "Morgan's Library")
Term: ROWID
Definition: It's important to note that ROWID values are not necessarily unique within a database. It is entirely possible for two rows of two different tables stored in the same cluster to have the same ROWID. The ROWID is intended to be immutable (that is, unchangeable) and the user should not try to change it once it is assigned. Note that the the ROWID may change if the row is physically moved on disk, such as:
Example Usage: The SQL query below displays the ROWID for the EMPLOYEE table records SQL> SELECT ROWID, ENAME, DEPTNO, SAL FROM EMPLOYEE; 2. As a Data Type As a Data Type, the ROWID is a valid data type of a column and is available in both SQL and Pl/SQL. It stores the ROWID pseudocolumn value of a row in the database. Example Syntax: [COLUMN] ROWID Example Usage: The below SQL statements create a table T_ROW with RID as ROWID column. Note that it is updated with ROWID of its own row. CREATE TABLE T_ROW Related Links:
Related Code Snippets:
|
Home | Search | Code Library | Sponsors | Privacy | Terms of Use | Contact Us | © 2003 - 2024 psoug.org |