Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-11-13 : 10:01:48
|
| erkan writes "How can I assign the select statement output to variable." |
|
|
Crespo
85 Posts |
Posted - 2002-11-13 : 10:21:54
|
| How about something like this,DECLARE @the_date DATETIMESET @the_date = (SELECT getdate())Best Regards.Crespo.Hewitt Bacon & WoodrowEpsomSurreyUnited Kingdom |
 |
|
|
Andraax
Aged Yak Warrior
790 Posts |
Posted - 2002-11-13 : 10:22:43
|
| If you mean for one or more single values (example):declare @var int, @var2 floatselect @var=field1, @var2=field3from table1where field2=7 |
 |
|
|
|
|
|