Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I use an IF
Message
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Can I use an IF
Divers
Thread ID:
00761098
Message ID:
00761098
Vues:
66
I want to write a stored procedure, and pass it several parameters. One of the parameters would be if it is an update or new record. Can I write a stored procedure that:

if @tiAction=1
* Code to Update
else
* Code to insert



Thanks
Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform