Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT SQL 2 memo fields in one field
Message
De
14/07/1997 16:55:22
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00039857
Message ID:
00039902
Vues:
35
>OK Michel, you've made me actually "think" on this one.
>The problem seems to be when you combine data from two memo fields, the corresponding field type returned from SELECT is a character field and NOT a memo field. Character field can only hold 254. So here's what you have to do:
>
>1. Create a cursor with a memo field to hold the data you're going to use for combining the 2 memo fields.
> CREATE CURSOR c1 (memo m) You could enter more fields if you like.
>2. SELECT memo1, memo2 FROM mytable INTO CURSOR c2
>3. Use looping (DO WHILE, SCAN, etc) and issue INSERT INTO c1 (memo) VALUES (c2.memo1+c2.memo2) inside.
>
>Is this too much work for what you're trying to do?

Thanks for the suggestion.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform