Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating a memo field using SQLExec
Message
 
À
02/07/1999 15:29:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00237006
Message ID:
00237012
Vues:
20
>I am trying to append text to a memo field through the SQLExec statement from my VFP6.0 app. I get an error when executing a statement like the following:
>
>SQLEXEC(gnHnd, "UPDATE mytable SET xxNotes = xxNotes + ?lcNote")
>
>I also tried the following, but it only saves the first few chars:
>
>SQLEXEC(gnHnd, "UPDATE mytable SET xxNotes = CAST(xxNotes AS varchar) + ?lcNote")
>
>Any ideas? Thanks
>-Brett

You need a where clause and it can't be the memo field, it needs to be at least the primary key.
-TomC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform