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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 storing collumn data in a local variable

Author  Topic 

smithani
Starting Member

42 Posts

Posted - 2007-08-16 : 09:47:01
Hi All,
I need to select some collumn data , can i store it in a varable some how.

Select name from Names

how can i assign this value to a variable, I need to manipulate this column value based on few cases.
As always thanks and appreciate your help.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-08-16 : 09:51:10
you can use a table variable

declare @table table
(
[name] varchar(100)
)



KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -