Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting OLDVAL and CURVAL using just SQL Statements
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00756623
Message ID:
00757444
Vues:
17
Hi,

>Sorry again... My mistake!!!! ... It works fine... but how can I get the old values? .... I get "RODOLFO DUARTE", but how can I get the old value "RODOLFO"?

No buffering is involved so there is no OLDVAL(). If you need to retain the old values I think you'll need to do this in your application - perhaps by routing all your tableupdates() thru a common method. Your log file will also be a lot shorter since you can just record changed fields.

>I think I don't understand it correctly... You suggest me that I have one log table for each table in my database? ... If not, how would be the structure of this log table?

Just one DBF with fields for table name, field, newvalue, timestamp etc.

Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform