Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MySQL - Updatable SQL Pass Through Result Sets
Message
 
À
01/07/2002 23:54:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00673761
Message ID:
00674341
Vues:
22
=CURSORSETPROP("UpdateNameList", "id pr1.id, keyInDate pr1.keyInDate, unit pr1.unit")
=CURSORSETPROP("UpdatableFieldList", "keyInDate, unit" )

MartinJ


>here is my SPT command :
>
>lconn = SQLSTRINGCONNECT("DRIVER=MYSQL;SERVER=127.0.01;DATABASE=test;UID=root")
>SQLEXEC(lconn,"SELECT * FROM pr1","cPr")
>=CURSORSETPROP("TABLES", "pr1","cPr")
>=CURSORSETPROP("UpdateNameList", "id pr1.id keyInDate pr1.keyInDate unit pr1.unit")
>=CURSORSETPROP("KeyFieldList", "id")
>=CURSORSETPROP("UpdatableFieldList", "keyInDate unit" )
>=CURSORSETPROP("SendUpdates", .t.)
>
>ok, let me rekey the value for the unit field from 'KG' to 'KG'. issue TABLEUPDATE()
>
>Then I will receive :
>
>Update conflict, ok, revert, help ...
>
>but if I key in differ value, eg, from 'KG' to 'PCS' then it is fine.
>
>what wrong with my command?
>
>TIA.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform