Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute in a query
Message
 
To
16/07/2004 16:13:20
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00925315
Message ID:
00925334
Views:
13
declate @returnval varchar(10)
set @returnval = select singleval from mytable where it_only = 'single value'

return @returnval

You can also use this to return a table value
Software engineers are trained to read and understand code; they are not trained in mind reading. Document the purpose not just the functionality.
Previous
Reply
Map
View

Click here to load this message in the networking platform