Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MySQL - Updatable SQL Pass Through Result Sets
Message
De
01/07/2002 23:54:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00673761
Message ID:
00674264
Vues:
20
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform