0
I am new and javascript and need to generate a string from Insert to sqlite with this string:
{ "InputFile" : "PER_02.inp", "RunTime" : 1492167103, "Reservoir" : "5", "Elevation" : 400.000000, "UpStreamId" : "172", "UpStreamP" : 95.000000, "PRU_l_ID" : "143", "PRU_setting" : 32.531769, "downstream_n_ID" : "164", "downstream_p" : 32.531769, "downstream_l_ID" : "9", "main_flow" : 0.600256, "local_flow_set" : 0.000000, "BLEED1_n_ID" : "6", "BLEED1_demand" : 0.000000, "BLEED2_n_ID" : "7", "BLEED2_demand" : 0.000000, "BLEED3_n_ID" : "8", "BLEED3_demand" : 0.000000, "CRIT1_n_ID" : "153", "CRIT1_p" : 97.513428, "CRIT1_p_set" : 25.000000, "CRIT2_n_ID" : "141", "CRIT2_p" : 104.513039, "CRIT2_p_set" : 0.000000, "CRIT3_n_ID" : "162", "CRIT3_p" : 81.419167, "CRIT3_p_set" : 0.000000, "control_type" : 0 }"Table fields have the same names.
Basically, you want to cross members and values and something like that?
INSERT INTO tabela (InputFile, Runtime,...) VALUES ('PER_02.inp', 1492167103, ...)
– Jefferson Quesado
That’s right, thank you..
– Welington Lourenço