Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set default value for field?
Message
De
10/08/2003 19:01:57
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00818645
Message ID:
00818772
Vues:
20
>>The second example shows how to assign a scalar value from a query, similar to what SqlCommand.ExecuteScalar() does in .NET.
>
>Oh, so then instead of this:
>
>
>[SELECT [@var1 = CompanyName] FROM Customers WHERE CustomerID = 'ALFKA']
>
>
>it's doing something like this:
>
>
>[SELECT @var1 = [CompanyName FROM Customers WHERE CustomerID = 'ALFKA']]
>
>
>Correct?

Conceptually, yes. Although I don't think the grouping would make a difference to the T-SQL engine in that particular example.

And yes, SELECT does not have to hit a table in SQL. It is the catch-all command.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform