Skip to content

Select rowid along with all other columns from a table in Oracle database

To select rowid along with all other columns from a table, just use an alias and get the columns using asterisk (*).

select rowid as id, mm.* from MOVIES_MASTER mm where MOVIE_ID = 98766;
See also  How to know the primary key column in Oracle?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.