Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace / Delete and Tableupdate
Message
 
À
30/12/1999 23:21:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00310754
Message ID:
00310857
Vues:
14
>This sounds strange, Pablo, but try to reverse the order of what you are doing with SET DELETED OFF. Therefore, you do the DELETE, the REPLACE datetime, and then the TABLEUPDATE().

Yes John, really it sounded very strange for me, but you're right WORKS!

I put this code:

SELECT table1
SET DELETED OFF
DELETE
REPLACE dtdeleted WITH DATETIME()
SET DELETED ON

BEGIN TRANSACTION
...

And perfect! Many thanks for the tip, I think you must write a FAQ article for this.

Gracias
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform