Unix Technical Forum

ROWIDs in Views

This is a discussion on ROWIDs in Views within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, i have a question: Some Views i have created have (internal) a rowID, others not. In what cases ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 01:07 PM
Micha
 
Posts: n/a
Default ROWIDs in Views

Hi,
i have a question:
Some Views i have created have (internal) a rowID, others not.
In what cases wil they create and in what cases not?

Micha


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 01:07 PM
hitman
 
Posts: n/a
Default Re: ROWIDs in Views

On Jun 27, 10:45 am, "Micha" <p...@gmx.li> wrote:
> Some Views i have created have (internal) a rowID, others not.
> In what cases wil they create and in what cases not?


Views are just stored queries. If you select rowid from a "simple"
view that has one-to-one relationship with underlying table data (key-
preserved) then you wil get it. But if you try to do a select rowid
from view with distinct, group by, etc you will get error: ORA-01446:
cannot select rowid from view with DISTINCT...

(Cause: A SELECT statement attempted to select ROWIDs from a view
containing columns derived from functions or expressions. Because the
rows selected in the view do not correspond to underlying physical
records, no ROWIDs can be returned. )

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com