I would like to change the values in my char * to the int and double that are declared so I can change them without touching char *sql.
(on ubuntu using C)
How can i do this?
code:
int sensor_id = 10;
double temp = 22.22;
char *sql = "INSERT INTO test_table(sensor_id, sensor_value) VALUES(10, 22.22)";