Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select into a local variable?
Message
 
À
24/03/2005 14:03:36
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00998940
Message ID:
00998942
Vues:
29
>Can you
>DECLARE @NumOrders
>
>Select count(order_id)
> into @NumOrders
>From Orders
>Group by order_id
>
>Thanks
>Jim


I am not sure, but is this works (I can't test it right now)
DECLARE @NumOrders as int

Select @NumOrders = count(order_id) From Orders Group by order_id
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform