Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql UPDATE() IMPOSSIBILITY
Message
 
 
À
09/12/2019 11:45:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01672198
Message ID:
01672199
Vues:
64
If these two values are constants, just use them directly in your update (no need to use FROM CLAUSE at all). Or simply use replace command.

>Hi,
>
>I have following code in myForm.Updating method:
>
>Select curNAW
>liID = Id
>Update NAW ;
>    SET  ;
>    NAW.Voornaam = curNAW.Voornaam  , ;
>    NAW.geslacht = curNAW.geslacht ;
>    FROM  curNAW ;
>    where NAW.Id  = m.liID
>m.llSuccess = Tableupdate(.F.,.T.)
>
>
>curNAW.Voornaam value = "Koen"
>m.liID =149
>there exsists a NAW.ID = 149
>nevertheless after this update, NAW.Voornaam = [ ]
>
>now when I copy this command to a testsql.prg and run that, it works as it should.
>I am overasked where to look to correct my method, any idea's?
>
>Regards,
>Koen
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform