Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT SQL 2 memo fields in one field
Message
From
14/07/1997 15:51:46
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00039857
Message ID:
00039879
Views:
41
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform