I am a newbie with MySQL and I think this should be a reasonable
simple thing to do;
I have a flat (text) file containing some text. I want to store the
file into a database so a C++ program can retrieve the content of the
data-file preferable as istream or sort of.
So for example I have a text file "example.tx t", I want to store this
in a table (I think as a BLOB column data in for example a table
Examples).
Some C++ program will do a querie SELECT data FROM Examples
So my question is;
-1- How do I store the 'example.txt' in the Example table in the data
column
-2- How can the C++ program use the return-results from querie (is
this a stream of some kind, this last question is probably off-topic
here)
David
simple thing to do;
I have a flat (text) file containing some text. I want to store the
file into a database so a C++ program can retrieve the content of the
data-file preferable as istream or sort of.
So for example I have a text file "example.tx t", I want to store this
in a table (I think as a BLOB column data in for example a table
Examples).
Some C++ program will do a querie SELECT data FROM Examples
So my question is;
-1- How do I store the 'example.txt' in the Example table in the data
column
-2- How can the C++ program use the return-results from querie (is
this a stream of some kind, this last question is probably off-topic
here)
David
Comment