Store values in SQLite

Please post support and help requests here.
Posts: 1
Joined: 20 Jan 2013, 18:10

Store values in SQLite

Postby apocalypse » 20 Jan 2013, 18:21

Hi guys,

I need to store a map<string,float> in a SQLite database, in this way:

I have 2 tables, let's call them table1 and table2. And a map<string,float> let's call him value. If the value is, for example, value["A"] = 5, value["B"] = 10; The tables must look like this:


id key
1 A
2 B


id table1_id (FK) value
1 1 5
2 2 10

How can I do this in an efficient way? Thank you in advance.

Return to “Support”

Who is online

Users browsing this forum: No registered users and 5 guests