MySQL Forums
Forum List  »  Spanish

Re: Como aplicar replicación en estructura
Posted by: Jesús Uzcanga
Date: July 30, 2015 10:37PM

Iván.

Seguramente existen formas de realizar lo que necesitas a través de triggers o inclus usando algún nuevo artilugio de Mysql Replication pero leyendo tu post enseguida se me vino a la mente esto:

1.- Con tu lenguaje de programación coloca tu listado de BD en un arreglo aData

2.- Utiliaza el areglo para el ALTER TABLE como se ve a continuación:

FOR x=1 TO LEN(aData)
ALTER TABLE Tabla ..... aData[x,1]
NEXT x

Espero que se entienda la idea. Es muy fácil de implementar y resuele tu problema de raíz... Y desde mi punto de vista lo más importante te permite ejecutarlo solo cuando estas totlmente seguro (con un trigger o replicación apenas metas el cambio este se replicará)

___________________________
Ing. Jesús Alfredo Uzcanga
Twitter: @JesusUzcanga

We learn the 20% of what we HEAR,
the 50% of what we SEE,
the 80% of what we DO and
the 95% of what we TEACH.

____________________________________________________________
https://www.linkedin.com/in/jauzcanga/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Como aplicar replicación en estructura
966
July 30, 2015 10:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.