Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT SQL 2 memo fields in one field
Message
De
14/07/1997 15:51:46
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00039857
Message ID:
00039879
Vues:
38
>>Is there a way in a SELECT SQL, to have 2 memo fields resulted in one memo field?
>>
>>In my table, I have 2 memo fields. Let say MEMO1 and MEMO2. I would like to do something like this in my SQL:
>>
>>SELECT MEMO1+MEMO2 FROM mytable...
>>
>>But, this gives "String is too long to fit". Any workaround for that?
>You can try trimming the contents of the memo field to shorten the overall return field's space. Something like:
>SELECT ALLTRIM(memo1)+ALLTRIM(memo2) FROM mytable...
>else, you might have to select both fields in your SELECT and combine the info into one variable by code.

I tried the ALLTRIM this morning and it is not working.

The reason I want to have all in one field is to avoid changing one of my main functions.

Thanks.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform