Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL SELECT fails to return just Replaced data
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00802023
Message ID:
00802073
Vues:
22
>Thanks: I Have simulated it consistantly - here is the code:
>
>CLOSE TABLES ALL
>SET SAFETY OFF
>CREATE TABLE MyTable (MyField C(10))
>USE
>USE MyTable
>SCATTER MEMVAR BLANK
>INSERT INTO MyTable FROM MEMVAR
>RLOCK() && Comment this line and it works properly
>REPLACE MyField WITH "TEST"
>*GO RecNo() && OR, Un-Comment this line and it also works properly
>SELECT * FROM MyTable WHERE MyField = "TEST"

1. If Rlock() make sure to issue Unlock
2. Why do you need to lock the record? For sure to one will be accessing it because you are the one who added to the table.
CLOSE TABLES ALL
SET SAFETY OFF
CREATE TABLE MyTable (MyField C(10))
USE
USE MyTable
SCATTER MEMVAR BLANK
INSERT INTO MyTable FROM MEMVAR
RLOCK()   && Comment this line and it works properly
REPLACE MyField WITH "TEST"
UNLOCK IN mytable
SELECT * FROM MyTable WHERE MyField = "TEST"
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform