Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

array variable?

Status
Not open for further replies.

sagn

Programmer
Jun 7, 2001
166
US
Are there array variables in SQL?

I'd like to set each element of an array
the value of a query. For example:

declare @array[10] varchar(50)

set @array = (select a from table1)


(this of course does not work)
Is this sort of thing possible?

thanks

dsag
 
Not that I am aware of. Why don't you just use a temporary table?
 
I didn't think so. Yes, I will use a temporary table
but I just thought arrays would be nice.

Thanks

sagn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top