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:
01386027
Vues:
61
It's almost right. You don't need ALLTRIM though,and only need LOWER()/UPPER() only if the case of the data is different.
UPDATE Table2 SET Column2 = TRIM(Table1.Column1) + TRIM(Table1.Column3) ;
	FROM Table2 ;
		INNER JOIN Table1 ON Table2.Column1 == Table1.Column2
THre're no stupid questions, only stupid answers. :)

>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.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform