PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > Comparing structural differences between tables
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Comparing structural differences between tables

Réponse
 
LinkBack Outils de la discussion
Vieux 12/04/2008, 03h01   #1
Jim Britain
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Comparing structural differences between tables

I have many similar tables to combine into one, for a report.

Does any one know of a method I could use to compare structural
differences between tables?

Currently I copy the table, truncate the copy, and print it out, and
then examine the differences on paper, but this becomes tedious for
doing more than a couple tables, and is prone to error.

There has to be a better way.

Jim



  Réponse avec citation
Vieux 12/04/2008, 11h39   #2
Luuk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Comparing structural differences between tables

Jim Britain schreef:
> I have many similar tables to combine into one, for a report.
>
> Does any one know of a method I could use to compare structural
> differences between tables?
>
> Currently I copy the table, truncate the copy, and print it out, and
> then examine the differences on paper, but this becomes tedious for
> doing more than a couple tables, and is prone to error.
>
> There has to be a better way.
>
> Jim
>
>
>


give us, i.e. from two tables you like to compare the output of

SHOW COLUMNS FROM table1;

and maybe even a SELECT * from table1 LIMIT 5;
to know what you think is 'similar'

and give an example on how you want to 'combine' these other than using
a UNION function (http://dev.mysql.com/doc/refman/5.0/en/union.html)


--
Luuk
  Réponse avec citation
Vieux 12/04/2008, 17h21   #3
Ana C. Dent
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Comparing structural differences between tables

Jim Britain <nomail2me@suddenlink.net> wrote in
news:bg5004pi3b77hrrvbaiv7bcstrlukpevml@4ax.com:

>
> There has to be a better way.
>


http://schemacrawler.sourceforge.net/
  Réponse avec citation
Vieux 12/04/2008, 18h39   #4
Jim Britain
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Comparing structural differences between tables

On Sat, 12 Apr 2008 16:21:42 GMT, "Ana C. Dent"
<anacedent@hotmail.com> wrote:

>Jim Britain <nomail2me@suddenlink.net> wrote in
>news:bg5004pi3b77hrrvbaiv7bcstrlukpevml@4ax.com :
>
>>
>> There has to be a better way.
>>

>
>http://schemacrawler.sourceforge.net/


Exactly what I was looking for, in particular the diffs.
  Réponse avec citation
Vieux 12/04/2008, 18h48   #5
Axel Schwenke
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Comparing structural differences between tables

Jim Britain <nomail2me@suddenlink.net> wrote:
>
> Does any one know of a method I could use to compare structural
> differences between tables?


<canonical answer>
http://www.google.com/search?q=mysql+diff
</canonical answer>


XL
--
Axel Schwenke, Support Engineer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/
  Réponse avec citation
Vieux 13/04/2008, 20h51   #6
Jim Britain
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Comparing structural differences between tables

On Sat, 12 Apr 2008 19:48:55 +0200, Axel Schwenke
<axel.schwenke@gmx.de> wrote:

>Jim Britain <nomail2me@suddenlink.net> wrote:
>>
>> Does any one know of a method I could use to compare structural
>> differences between tables?

>
><canonical answer>
>http://www.google.com/search?q=mysql+diff


Why didn't I think of that?? Too deep into the project, I guess.
There's a tradeoff between research and getting a tedious project
done. Boring & tedious leads to research...

Thanks -- I needed that..
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h34.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14868 seconds with 14 queries