Store variables and arrays from c++ to mysql?
Posted by: Martin Grasser
Date: May 03, 2011 08:21AM

I want to store some int and bool and double and char arrays and single variables to mysql.
How can I do this??

Ive tried to store some data manually using :
mysql_query(database, "INSERT INTO table VALUES('hello','this is a','test')");

I even dont know the syntax for only storing a single integer or double variable to mysql.

So how can I store those datatypes.
int test_int;
double test_double;
char name[15];
int int_array[15];
double double_array[15];

Please help me with this!



Edited 2 time(s). Last edit at 05/03/2011 08:22AM by Martin Grasser.

Options: ReplyQuote


Subject
Views
Written By
Posted
Store variables and arrays from c++ to mysql?
1718
May 03, 2011 08:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.