Try OpenEdge Now
skip to main content
SQL Reference
SQL Reference : OpenEdge SQL Functions : ROWID
 

ROWID

Returns the row identifier of the current row in a table. This function takes no arguments. The ROWID of a row is determined when the row is inserted into the table. Once assigned, the ROWID remains the same for the row until the row is deleted. At any given time, each row in a table is uniquely identified by its ROWID. Using its ROWID is the most efficient way of selecting the row.

Syntax

ROWID

Notes

The ROWID function returns a string of up to 19 characters in length.

Example

This example illustrates the ROWID function, returning all columns from the row in the customers table where the ROWID = ‘10':
SELECT *
FROM customers
WHERE ROWID = '10';

Compatibility

Progress extension