Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select with the second DB
Message
De
29/01/2022 19:42:23
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01683370
Message ID:
01683375
Vues:
47
OK, maybe I wasn't completely clear in my example....the "TestTable" was in a different database (I referred to it as TestDB)

But to answer your question.....

This is (probably) not necessary
SELECT TestTable.Name from MySecondSQLServerDatabase.TestTable where MySecondSQLServerDatabase.TestTable.first_name = 'XYZ'

But this should work

SELECT TestTable.Name from MySecondSQLServerDatabase.TestTable where TestTable.first_name = 'XYZ'

But again...I *really* encourage you to use some type of proper alias. In all candor, it royally pisses me off when people don't do it.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform