|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Views?
HI,
I have an application that first reads all the tables from the database with getTables() and the I can read all the primary keys and foreign keys for an individual table. I need somehow to support views. Does anybody know how I can 1. read all views from database 2. for each view check to see if there are primary key/ foreign keys. I have never used views before so any help would be appreciated. Thanks, Srdjan |
|
#2
|
||||
|
||||
|
Quote:
SELECT * FROM all_objects WHERE object_type = 'VIEW'; Quote:
Views are SELECT statements, they don't have primary/foreign keys. Only the tables that they are based on have keys defined. You would need to analzye the SQL which was used to create the view in order to find the view's tables and then check the fk/pk definitions for the tables. |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Views? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|