Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optional Parameters
Message
De
25/02/2002 11:30:31
 
 
À
25/02/2002 08:19:27
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00624260
Message ID:
00624563
Vues:
10
Thanks Mike ... I like that.

~~Bonnie


>This is an example of a very common technique:
>
>
>CREATE PROCEDURE MyProc
> @mytable_ID int,
> @One   char(1) = NULL,
> @Two   char(2) = NULL,
> @Three char(3) = NULL
>AS
>
>UPDATE mytable
> SET one = ISNULL(@one, one),
> two = ISNULL(@two, two)
> three = ISNULL(@three, three)
>WHERE
> mytable_ID = @mytable_ID
>
>
>-Mike
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform