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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
Quote:
u can use show create view view_name; command. |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Import EXCEL Data into QTP Global Data Table | venkata krishnamurthy t | Software Testing | 7 | 12-09-2007 10:59 PM |
| General Ledger – Technical | dongta_ndh | Oracle Apps | 0 | 12-20-2006 10:06 PM |
| Retrieve the List of Table Names | seenu01 | C Sharp | 3 | 02-17-2006 02:09 PM |
| I am looking for a discussion about wrapping Hugh table as collection | Julia | Software Patterns | 0 | 06-28-2004 06:53 AM |
| Kerberos FAQ, v2.0 (last modified 8/18/2000) | Ken Hornstein | Tech FAQ | 0 | 04-17-2004 07:28 AM |