Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declaring variable for current record
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Declaring variable for current record
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00995317
Message ID:
00995317
Vues:
51
I've been searching the BOL for a clue without sucess...

In a trigger,
how can I declare a variable for the current record?

I want a trigger to fire on an INSERT or an UPDATE.
DECLARE @ID_CurrentRecord Int

@ID_CurrentRecord= <<Table.ID_Field>>              && Current Value 

UPDATE Table SET Somefield = SomeValue WHERE Table.ID_Field <> @ID_CurrentRecord
Luc Nadeau
lnadeau@neova.ca

"the theory, it is when all is known and that nothing works. The practice, it is when all works and that nobody knows why." - Albert Einstein (Nobel of physique 1921)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform