Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNIONing from a character and a memo field
Message
From
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:
00739694
Views:
8
>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.
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