473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Determine underlying tables in a view

Hi All

Is there any way to determine what the underlying tables are in a view
from within a stored procedure?

I've written a function that parses the View text but I was hoping for
something more elegant.

Any help in this regard would be appreciated.
Ron
Jul 19 '05 #1
2 27746
Hi Ron,

You can use the following query to find out whicc tables your view is
dependent on

select name , type , referenced_name , referenced_type
from user_dependencies where name = 'VIEW_NAME' and type = 'VIEW' and
referenced_type = 'TABLE'

I hope this helps

Thanks

Minesh

Ro*******@hotmail.com (Sporge) wrote in message news:<7e**************************@posting.google. com>...
Hi All

Is there any way to determine what the underlying tables are in a view
from within a stored procedure?

I've written a function that parses the View text but I was hoping for
something more elegant.

Any help in this regard would be appreciated.
Ron

Jul 19 '05 #2
Hi Minesh

Thanks for the help.

Regards,
Ron
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: stacdab | last post by:
We have a partitioned view with 4 underlying tables. The view and each of the underlying tables are in seperate databases on the same server. Inserts and deletes on the view work fine. We then...
2
by: Robert Stearns | last post by:
Can I construct a restricted view and grant select access on it to a user without granting select access to the underlying tables and views? This seems to be an easy way to restrict a user to just...
13
by: Aladdin | last post by:
I have an MS Access form on which I have a listbox listing tables in that database. I want to be able to click on any of those tables and view its contents on the same form using subforms or any...
0
by: Martin Schäfer | last post by:
Is there any way to find out whether a column that's used in a view is indexed? I can find out whether a table's column is indexed by going through the pg_class, pg_attribute and pg_index system...
0
by: subhashv24 | last post by:
I have two tables with one to one relationship. I have created two adapters for two tables and added them to dataset. I have also created a relation in designer view. Now how can I display...
3
by: Phung | last post by:
Hi friend ! i want to ask you about view. will the view data be updated automatically when we insert or update the physical table or it is updated when we execute the view ?
2
by: Sporge | last post by:
Hi All Is there any way to determine what the underlying tables are in a view from within a stored procedure? I've written a function that parses the View text but I was hoping for something...
3
by: Peter | last post by:
Hi I call some "worker"-Methods asyncronous. here some simplified code .... public delegate long AsyncWCaller(string parameter); ....
1
by: N Casey | last post by:
The DB in question has 300 tables and I'm looking to copy to a backup DB only those tables which are populated. This backup will be refreshed on a daily basis. Cheers, Niven
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.