Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I fill one field with several values
Message
 
 
À
05/03/2009 16:43:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01385968
Message ID:
01386010
Vues:
55
>I know this isn't right:
>
>UPDATE Table2 SET Column2 = TRIM(Table1.Column1) + TRIM(Table1.Column3) FROM Table2 INNER JOIN Table1 ON Lower(Alltrim(Table2.Column1)) == Lower(Alltrim(Table1.Column2))
>
>What is right?
>
>I know I sound like an idiot, I am pretty new to this stuff.

Which database we're talking about here? SQL Server or VFP?

In VFP the syntax is correct, but it would not be Rushmore optimized. Can you do a join by PK (or integer field) instead of a character field?

If the tables are small, then it would not matter much.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform