I have a c++ program, and I am planning to use odbc to communicate my c++ program with mysql tables.
There is alot of tutorials online on how to access mysql tables using c++ and odbc, but how do I use c++ and odbc to load a excel file into mysql tables?
One way is to save the file as a CSV and then execute the following statement
in your program. i.e. if you are using the C++ wrapper,
This should work.
If you are using the C APIs then use
The other way to do this would be to connect to Excel via an ODBC connection, import the data from there and import into MySQL. This is more complicated.