Exforsys

Free 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

Exforsys.com

  #1 (permalink)  
Old 05-29-2007, 11: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, 02: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, 06: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
  #4 (permalink)  
Old 11-12-2008, 08:11 AM
Junior Member
 
Join Date: Nov 2008
Posts: 2
geetaravula is on a distinguished road
even i want answer to the same question by using sql or pl/sql please help me out
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-12-2008, 08:56 AM
Senior Member
 
Join Date: Nov 2004
Posts: 177
sanereddy is an unknown quantity at this point
Quote:
Originally Posted by geetaravula View Post
even i want answer to the same question by using sql or pl/sql please help me out

Oracle : select * from tabs

SQl Server : select name, user_name(uid) from sysobjects where type='U'
sp_tables
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-19-2008, 06:00 AM
Junior Member
 
Join Date: Nov 2008
Posts: 2
geetaravula is on a distinguished road
Quote:
Originally Posted by geetaravula View Post
even i want answer to the same question by using sql or pl/sql please help me out


Anyone please help me out to get table names from a view using pl/sql procedure
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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
General Ledger – Technical dongta_ndh Oracle Apps 1 09-10-2009 07:34 AM
Import EXCEL Data into QTP Global Data Table venkata krishnamurthy t Software Testing 7 12-09-2007 11:59 PM
Retrieve the List of Table Names seenu01 C Sharp 3 02-17-2006 03:09 PM
I am looking for a discussion about wrapping Hugh table as collection Julia Software Patterns 0 06-28-2004 07:53 AM
Kerberos FAQ, v2.0 (last modified 8/18/2000) Ken Hornstein Tech FAQ 0 04-17-2004 08:28 AM


All times are GMT -4. The time now is 08:17 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.