Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set default value for field?
Message
 
To
10/08/2003 19:01:57
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
00818645
Message ID:
00818773
Views:
25
OK, thanks. That gets me started.


>>>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.

Read about the greatest fraud in the history of mankind.
See TaxableIncome.net.
Previous
Reply
Map
View

Click here to load this message in the networking platform