Jun 8, 2001 #1 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
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
Jun 8, 2001 #2 fluteplr Programmer Oct 23, 2000 1,599 US Not that I am aware of. Why don't you just use a temporary table? Upvote 0 Downvote
Jun 8, 2001 Thread starter #3 sagn Programmer Jun 7, 2001 166 US I didn't think so. Yes, I will use a temporary table but I just thought arrays would be nice. Thanks sagn Upvote 0 Downvote
I didn't think so. Yes, I will use a temporary table but I just thought arrays would be nice. Thanks sagn