MySQL Forums
Forum List  »  Newbie

Re: Syntax to INSERT and SELECT records with BLOB column
Posted by: Peter Brawley
Date: October 15, 2021 02:08PM

> MySql told me that forums are the only documentation!

No it didn't.

See the DOCUMENTATION link at the top of this and every forum page.

> I need an example of C++ code to insert a record into a table ...

First work out the SQL required. Write it, test abd debug it in the mysql client program.

Then work out how to invoke such SQL from your API language, trapping all errors &c.

Docs for loading file contents into a blob are at https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function_load-file

Options: ReplyQuote


Subject
Written By
Posted
Re: Syntax to INSERT and SELECT records with BLOB column
October 15, 2021 02:08PM


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.