Overview
Features
Download
Documentation
Community
Add-Ons & Services

Store values in SQLite

Please post support and help requests here.

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:

table1

id key
1 A
2 B

table2

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

How can I do this in an efficient way? Thank you in advance.
apocalypse
 
Posts: 1
Joined: 20 Jan 2013, 18:10

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron