SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 select into variable (PDW)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

waterduck
Aged Yak Warrior

Malaysia
961 Posts

Posted - 03/05/2014 :  04:15:43  Show Profile  Reply with Quote
how to get multiple column value to variable in PDW/DSQL?such as below

declare @a table(col1 int, col2 int)

insert into @a values (1,2)

declare @c int, @d int

select @c = col1, @d = col2
from @a

select @c, @d

waterduck
Aged Yak Warrior

Malaysia
961 Posts

Posted - 03/05/2014 :  04:22:05  Show Profile  Reply with Quote
dam i hate pdw
Go to Top of Page

khtan
In (Som, Ni, Yak)

Singapore
17584 Posts

Posted - 03/05/2014 :  04:36:05  Show Profile  Reply with Quote
is there any "BOL" for the PDW ?


KH
Time is always against us

Go to Top of Page

waterduck
Aged Yak Warrior

Malaysia
961 Posts

Posted - 03/05/2014 :  04:40:10  Show Profile  Reply with Quote
yea it is, but i cant find the thing i needed.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000