Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting OLDVAL and CURVAL using just SQL Statements
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00756623
Message ID:
00757444
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform