Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT data from a Char type field into a Memo type fiel
Message
De
31/12/1999 20:23:42
 
 
À
31/12/1999 18:01:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00310779
Message ID:
00311076
Vues:
20
>>>Does anybody know how to do SQL SELECT statement that will move data from a character type field and move it into a memo field in the cursor?
>>>
>>>This is not trying to pull data from an existing memo field, but trying to create a new memo field that is populated with the data from the character field and will be massaged later on in the code.
>>>
>>>
>>>CREATE CURSOR memotable (mfield M)
>>>INSERT INTO memotable (mfield) VALUES ('')
>>>SELECT mfield FROM memotable ;
>>>       UNION (SELECT cfield FROM chartable) ;
>>>       INTO CURSOR memocursor
>>>
>>>gives a UNION INCOMPATIABLE ERROR.
>>>
>>>Any suggestions?
>>

CREATE CURSOR memotable (cfield m)
APPEND FROM chartable

seems cheap and easy...the field name stays cfield if that's a big problem.

>>
Fred,
>>Should it be strictly one SQL "select" ? Append from instead ? ie:
>>
>>create cursor memotable (mfield M)
>>select cfields as mfield from chartable into cursor transfer nofilter
>>select memotable
>>append from dbf("transfer")
>>
>>Cetin
>
>Cetin/Michael/Erik,
>
>Thanks, guys. Doing it one step was not a requirement. I'll have to see if I can try your methods to merge it with other data from the SQL SELECT statements involved.
>This is just for some "proof of concept" stuff were currently working on, so we may not even end up needing to do it this way. It's still kind of flexible, but the memo field seemed like the way to go. We just may implement this as a parent/child set of cursors for processing. Thanks again!
>
>Happy New Year!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform