Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT SQL 2 memo fields in one field
Message
From
22/07/1997 04:11:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
14/07/1997 13:08:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00039857
Message ID:
00041045
Views:
33
> 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? Couple of, but you won't like it :) #1: Select them both, then reopen the cursor (classical Use (dbf()) again alias newcurs), and Replace All memo1 with memo1+memo2 #2: Select none, but add record number: select this, that, recno() as rcn from ... set order to 0 in source_table set rela to rcn into source_table_alias This is somewhat quicker, since you don't really Select the memos, and you probably don't need all of the memos all of the time. If that is the case, you can always do something like dummy_memo=original.memo1+original.memo2 while processing a single record. If you really need all of them at once, this may not be the best.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform