Want to Get Table Names
This is a discussion on Want to Get Table Names within the MySQL forums, part of the Database category; I have written many views for performing various operations in my database. I have to now get a report of ...
-
Want to Get Table Names
I have written many views for performing various operations in my database. I have to now get a report of all the table names used in my views alone. Is there any way for that? Do I need to write some function of procedure for achieving this. Kindly give me some tips for doing this.
-
There are various ways of achieving this. You can give command as
sp_depends sample
where sample denotes the view name. Replace sample with your view name.
or you can also give the query as below:
select * from information_schema.view_table_usage;
These would help you get a report of all the table names used in my views alone.
-
01-16-2008, 06:40 AM #3
- Join Date
- Mar 2007
- Answers
- 2
I have written many views for performing various operations in my database. I have to now get a report of all the table names used in my views alone. Is there any way for that? Do I need to write some function of procedure for achieving this. Kindly give me some tips for doing this.
u can use
show create view view_name;
command.
-
11-12-2008, 08:11 AM #4
- Join Date
- Nov 2008
- Answers
- 2
even i want answer to the same question by using sql or pl/sql please help me out
-
-
11-19-2008, 06:00 AM #6
- Join Date
- Nov 2008
- Answers
- 2
-
09-27-2011, 03:56 AM #7
- Join Date
- Sep 2011
- Location
- INDIA
- Answers
- 10
you may also retrieve the table names from typing the following command, try the command like this
select * from desc
-
Sponsored Ads


Reply With Quote






