Store array in SQLite that is referenced in another table
问题 I'm trying to store arrays (or vectors) of data in a SQLite database but I'm having problems trying to find a decent way to do so. I found some other post on StackOverflow, that I can't seem to find anymore, which mentioned storing the data in a table like the following: CREATE TABLE array_of_points ( id integer NOT NULL, position integer NOT NULL, x integer NOT NULL, y integer NOT NULL, PRIMARY KEY (id, position) ); So to store all the data for a single array you would insert each item under