Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select into a local variable?
Message
De
24/03/2005 17:00:51
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00998940
Message ID:
00999028
Vues:
24
Thanks everyone
Jim

>The GROUP BY is pointless because it either will generate an error or only last group value will be assigned.
DECLARE @NumOrders
>Select @NumOrders = count(order_id)
>From Orders
>
>
>
>>Can you
>>DECLARE @NumOrders
>>
>>Select count(order_id)
>> into @NumOrders
>>From Orders
>>Group by order_id
>>
>>Thanks
>>Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform