Can we have array type data in SQL Server 2008

Can we have array type data in SQL Server 2008 currently I use a comma-separated value that needs to be considered as an array value

+6
source share
3 answers

SQL Server 2005+ supports table variables:

declare @arr table (col1 int) insert @arr (col1) values (3), (1), (4) 

They are equivalent to arrays.

+8
source

User tables:

If you want to know more, this article is widely mentioned:

http://www.sommarskog.se/arrays-in-sql-2008.html

Table value options were introduced in SQL Server 2008.

+2
source

Source: https://habr.com/ru/post/918748/


All Articles