Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNIONing from a character and a memo field
Message
 
 
To
09/01/2003 01:16:01
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00739689
Message ID:
00739699
Views:
12
>>You need to make the fields UNION compatible using the following:
Create Table c:\temp\table_memo ( mField m )
>>
>>Create Table c:\temp\table_char ( cField c(50) )
>>
>>Select Padr( mField, 100 ) As cResult ;
>>	From Table_Memo ;
>>	Into Cursor curTest ;
>>Union ;
>>Select Padr( cField, 100 ) ;
>>	From Table_Char
>
>Yes, this is exactly how I saw it at first. But, if I have a memo, that's because I have some values over 250 characters. I thought I would run into problems at one time or another because of the restriction of the character field versus the memo field. IAC, for now, I found that I no longer need the second part of the SQL. But, it is an interesting issue to deal with.

This can only be done the long way:
Select MemoField ;
	From Table_Memo ;
	Into Cursor curTest ;
	ReadWrite

Select CharField As MemoFieldName ;
	From Table_Char ;
	Into Table c:\Temp\NewTable

Select curTest
Append From c:\Temp\NewTable
Use In NewTable
etc.
The As MemoFieldName is required, so that the Field Names match during the APPEND.
censored.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform