User Tools

Site Tools


confronto_struttura_tabelle_tra_due_database

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
confronto_struttura_tabelle_tra_due_database [2026/09/18 12:56] – created gabrieleconfronto_struttura_tabelle_tra_due_database [2026/09/18 12:59] (current) – gabriele
Line 1: Line 1:
 +====== Confronto struttura tabelle tra due database ======
 +
 +Questa query confronta la struttura delle tabelle elencate in ''wanted_tables'' e visualizza solo le differenze.
 +
 +Sostituire ogni occorrenza di ''database_1'' con il database a sinistra e di ''database_2'' con il database a destra.
 +
 <code mysql> <code mysql>
 WITH WITH
 wanted_tables AS ( wanted_tables AS (
-    SELECT 'tp_bundle_account' AS table_name +    SELECT 'tabella1' AS table_name
-    UNION ALL SELECT 'tabella1' +
-    UNION ALL SELECT 'tabella2'+
     UNION ALL SELECT 'tabella2'     UNION ALL SELECT 'tabella2'
 +    UNION ALL SELECT 'tabella3'
 +    UNION ALL SELECT 'tabella4'
 ), ),
  
confronto_struttura_tabelle_tra_due_database.1789736176.txt.gz · Last modified: by gabriele