Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to update a database via triggers or store procedure
Message
De
20/07/1999 23:23:34
 
 
À
20/07/1999 23:05:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00243968
Message ID:
00243978
Vues:
30
>I'd like to know how I can use just database routines i.e a stored procedure or trigger to update a (different) table than the orginal table. In other words I have a table (A) that I add a record or change a field and I want a store procedure or trigger to add a record or update fields in a different table (B) when table (A) is updated. Both tables would be in the same database or not (what ever is required). I would be using VFP 5.0 and not VFP 6.0 to update data.
>TIA
>John

Just create a function that does what you want (in teh SP area of the database)... and then call the function from the Insert/Update trigger. When you modify a table you will find the trigger fields on the TABLE tab.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform