For small tables, I pack the array of values into a comma-(or whatever)-delimited string. It's not very efficient or elegant. A BLOB (big chunk o' binary) is not a bad idea, if you can parse the BLOB efficiently. The best answer might depend on the data types in the array.
I don't know aof a way create an array column in an MS SQL Server database, unless you had an array and inserted it as a BLOB coumn to do that but I wouldn't recommend it.
The correct (relational DB) thing to do (in my opinion) would be to design perhaps two tables. One table with one being the one table and another as the many table.
I'm probably way off base because I don't do COBOL.
I know this is either a very easy or impossible question but would appreciate if someone could at least give me an indication of which. I am new to SQL databases after using COBOL index sequential files for years and just need to know if it is possible to create an array within a table and if so how.
Creating Arrays in Tables
Volcom98
---Mike
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
The correct (relational DB) thing to do (in my opinion) would be to design perhaps two tables. One table with one being the one table and another as the many table.
I'm probably way off base because I don't do COBOL.
HTH
zut