If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Schemas Comparision

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-12-02, 07:23
sekhartd sekhartd is offline
Registered User
 
Join Date: Sep 2002
Posts: 8
Schemas Comparision

Hi All,

In oracle we can get the columns related information for a particular shcema by quering from user_tab_columns. As a administrator I can write a script file which gives the result of the differences if there are any in a given two schemas.

Is there any way to get the column information other than " SHOW FIELDS FROM tablename" ???

Regards,
Sekhar
Reply With Quote
  #2 (permalink)  
Old 09-18-02, 19:42
letford letford is offline
Registered User
 
Join Date: Sep 2002
Posts: 2
Hi Sekhar,
Did you ever find out how to do this, I've been looking for ages.

Steve
Reply With Quote
  #3 (permalink)  
Old 09-23-02, 05:23
kamwingpang kamwingpang is offline
Registered User
 
Join Date: Jul 2002
Posts: 8
Lightbulb Not like Oracle but...

http://www.mysql.com/doc/en/SHOW.html

SHOW [OPEN] TABLES [FROM db_name] [LIKE wild]

SHOW [FULL] COLUMNS FROM tbl_name [FROM db_name] [LIKE wild]

Closest that I found...

Kam
Reply With Quote
  #4 (permalink)  
Old 09-23-02, 15:36
letford letford is offline
Registered User
 
Join Date: Sep 2002
Posts: 2
Yes but the problem everyone seems to be having is how to do a select on these details.

i.e Select * from (Show Tables) where tablename = 'z'

And then possible do a join on the details for the columns of that table.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On