Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mysql insert local table from remote table
Message
 
À
06/11/2012 22:57:41
Hee Lim Wang
Fantasy Software Enterprise
Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01556561
Message ID:
01556562
Vues:
42
>Hi all !
>how to insert mysql local table from remote table ?
>SQLEXEC(lnHandle,"insert into LocalTable.employee select * from RemoteTable.employee")

Not sure about MySQL, but in SQL Server the full name of the table is:

[Server].[DataBase].[Schema].[TableName]
So maybe in MySQL is the same:
SQLEXEC(lnHandle,"insert into LocalServer.DataBase.Schema.employee select * from RemoteServer.DataBase.Schema.employee")
But you should check for the right syntax.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform