Exforsys

Online Training

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 ...


Go Back   Exforsys > Database > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-29-2007, 10:40 AM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
Question 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-02-2007, 01:06 AM
Senior Member
 
Join Date: Apr 2006
Posts: 153
cyrus is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 05:40 AM
Junior Member
 
Join Date: Mar 2007
Posts: 2
abhijitbuchake is on a distinguished road
Quote:
Originally Posted by caradoc View Post
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools

Posting Rules
You may not post new questions
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


Similar Threads

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


All times are GMT -4. The time now is 12:24 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.